When you define the DateTime format for a date field, you tell Analyzer which characters represent the day, the month and the year. Analyzer uses the following format characters to represent the elements of a date field:
Format Characters
|
Data Element
|
DD |
Day (131) |
DDD |
Julian day (1366) |
MM |
Month (112) |
MMM |
Month name (Jan.Dec.) |
YY |
Short year format (199) |
YYYY |
Long year format (19001999) |
Put separators such as the slash symbol (/) in the same relative position as they are in the source data file. If you do not, Analyzer will not interpret the date correctly. The format that you define must match the format of the stored date.
The following table shows different ways in which a date may be stored in a table and how you would describe the format to Analyzer.
Stored Date
|
Analyzer Date Format
|
991231 |
YYMMDD |
12311999 |
MMDDYYYY |
31DEC1999 |
DDMMMYYYY |
12/31/99 |
MM/DD/YY |
99365 |
YYDDD |
December 31, 1999 |
MMM DD, YYYY |