Date Generator create date and time data using a either a date and time style or a format string.
Date Generator Types
You can choose the following types of dates:
- Random Dates
- Constant Dates
Date and Time Style
Using format style you can select between the following pre-set format for dates and times:
- For dates
- No Style: Do not include a date.
- Short Style: 04–05–12
- Medium Style: 04–05–2012
- Long Style: May 5, 2012
- Full Style: Sunday 5 of May, 2012
- For times
- No Style: Do not include a time.
- Short Style: 12:45
- Medium Style: 12:45:32
- Long Style: 12:45:32 GMT–04:00
- Full Style: 12:45:32 Pacific Time
Format String
The format string specifies format symbols that define the way date and/or times are formatted. The symbols are defined by the Unicode Technical Standard 35.
Example Format Strings
- MM-dd-YYYY: 05–25–2012
- dd-MM-YYYY HH:mm:ss z: 05–25–2012 23:13:30 GMT–4:00
Here is a brief list of symbols supported:
- yy: 2 digit year [00–99]
- yyyy: 4 digit year. i.e., 2012
- MM: Month number [1–12]
- MMM: Month abbreviation, i.e., Sept
- MMMM: Month full name, i.e., September
- dd: 2 digit day of the month [1–31]
- a: Period, AM or PM
- h: Hour [1–12]
- HH: Hour [0–23]
- m: Minute
- s: Second
- z: Timezone, GMT–4:00

