SET DATE
Assings a date format or chooses a predefined date data set.
- Syntax
- SET DATE FORMAT [TO] <cFormat>
- SET DATE [TO] [ ANSI / BRITISH / FRENCH / GERMAN / ITALIAN / JAPAN
- / USA / AMERICAN]
- Arguments
- <cFormat> Keyword for date format
- Description
- This command sets the date format for function display purposes. If specified, may be a customized date format in which the letters d,m and y may be used to desing a date format.The default is an AMERICAN date format;specifying no parameters will set the date format to AMERICAN.Below is a table of the varius predefined dates formats.
Syntax | Date Format |
ANSI | yy.mm.dd |
BRITISH | dd/mm/yy |
FRENCH | dd/mm/yy |
GERMAN | dd.mm.yy |
ITALIAN | dd-mm-yy |
JAPAN | yy.mm.dd |
USA | mm-dd-yy |
AMERICAN | mm/dd/yy |
- Examples
- SET DATE JAPAN
- ? DATE()
- SET DATE GERMAN
- ? Date()
- Tests
- See tests/dates.prg
- Status
Ready
- Compliance
- This command is Ca-Clipper compliant
- See Also