Show/Hide Toolbars

XSharp

NoteThis 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

Purpose

Change the setting that determines the XSharp date format.

Syntax

SET DATE FORMAT [TO] <cDateFormat>

Description

SET DATE FORMAT is functionally equivalent to SetDateFormat().  

Examples

In this example the FORMAT clause directly specifies the date format:

 

SET DATE FORMAT "yyyy:mm:dd"
SetCentury(TRUE)
? Today()                                // Result:  2019:10:15

Assembly

XSharp.RT.DLL

See Also

CToD(), DToC(), DToS(), SetCentury(), SetDateCountry(), SetDateFormat(), SetEpoch(), Today(),