DateTime 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.]

DateTime literals are used to write a time of day on a specific date that is independent of time zone. DateTime literals are similar to ISO 8601; ‘0001’ is the representation of 1 AD; there is no year 0, and ‘0000’ is not a valid lexical representation; ‘-0001’ is the representation of 1 BC. The type of a DateTime literal is DateTime.

Literal Format

DateTime literals take the following format.

DateTimeLiteral:
DateLiteral  T  TimeLiteral  

See Also

Other Resources

"M" Literals ("M" Reference)