Compartir a través de


Date Literals ("M" Reference)

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

Date literals are used to write dates. The type of a date literal defaults to Date.

Literal Format

Date literals take the following format.

DateLiteral:
Sign(optional)  DateYear  -  DateMonth  -  DateDay  
DateDay: one of
01  02  03  04  05  06  07  08  09  10  11  12  13  14  15
16  17  18  19  20  21  22  23  24  25  26  27  28  29  30
31
DateMonth: one of
01  02  03  04  05  06  07  08  09  10  11  12
DateYear:
DecimalDigit  DecimalDigit  DecimalDigit  DecimalDigit

See Also

Other Resources

"M" Literals ("M" Reference)