Note | This command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available |
Change the setting that determines the XSharp date format.
SET DATE FORMAT [TO] <cDateFormat>
SET DATE FORMAT is functionally equivalent to SetDateFormat().
In this example the FORMAT clause directly specifies the date format:
SET DATE FORMAT "yyyy:mm:dd"
SetCentury(TRUE)
? Today() // Result: 2019:10:15
XSharp.RT.DLL
CToD(), DToC(), DToS(), SetCentury(), SetDateCountry(), SetDateFormat(), SetEpoch(), Today(),