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 by selecting from a list of constants with corresponding date formats.
SET DATE [TO] <kCountrySetting>
SET DATE is functionally equivalent to SetDateCountry().
This example illustrates various system-defined country settings:
SET DATE German
? Today() // Result: 15.10.19
SET DATE Ansi
? Today() // Result: 19.10.15
XSharp.RT.DLL
CToD(), DToC(), DToS(), SetCentury(), SetDateCountry(), SetDateFormat(), SetEpoch(), Today()