Date format strings are used by Vermont Views to allow flexibility in entering dates in a variety of formats. By using a date format string, you can use dates in any number of formats, such as U.S. style (month/day/year), European style (day/month/year), or your own date formats.
A date format string is composed of the following control characters:
| D | Represents a numeric day. There can only be 2 Ds in a date format string. |
| M | Represents a numeric month. There can only be 2 Ms in a date format string. |
| S | Represents a string month (for example, Mar or March depending on the number of Ss). |
| Y | Represents a numeric year. There can be 2 or 4 Ys in a date format string. If you want to use years greater than 2000, you should specify 4 Ys in your date format string. |
Any character other than M, D, Y, and S can be used as date separators between the day, month, and year components of the date, including spaces.
String months are determined by accessing an array of month names. This array (_months[]) is located in vv_main.h. If the date format string specifies three Ss, only the first three letters in the month name are used. For international compatibility, you can change the month names in this array to the language of your choice. Rememer that in your date format string, you must specify enough Ss to uniquely identify the month.
For your convenience, the following date formats are defined by the system:
| US_DATE | "MM/DD/YY" |
| EURO_DATE | "DD/MM/YY" |