Specify the format of the input data using y or Y for years, m or M for months, d or D for days, and j or J for Julian days.
The length of the format string is the width of the input column.
Option | Meaning |
---|---|
yyyy or YYYY yy or YY |
Represents number of year. Default is 1900. |
mm or MM | Represents number of month. Always use leading zeros for number of the month where appropriate, for example '05' for May. If you omit the month from a DATE value, the day is treated as a Julian date. If you enter only the month, for example, '03', SAP Sybase IQ applies the default year and day and converts it to '1900-03-01'. |
dd or DD jjj or JJJ |
Represents number of day. Default day is 01. Always use leading zeros for number of day where appropriate, for example '01' for first day. J or j indicates a Julian day (1 to 366) of the year. |
On input, the case of the format code is ignored.
Sample DATE format options show how date input data look and how to specify the format with the DATE conversion option.
Input Data | Format Specification |
---|---|
12/31/09 | DATE ('MM/DD/YY') |
12-31-09 | DATE ('MM-DD-YY') |
20091231 | DATE ('YYYYMMDD') |
12/09 | DATE ('MM/YY') |
2009/123 | DATE ('YYYY/JJJ') |
NEAREST_CENTURY Setting | Year Specified As | Years Assumed |
---|---|---|
Default (50) | 00 - 49 50 - 99 |
2000 - 2049 1950 - 1999 |
0 | Any | 1900s |
100 | Any | 2000s |