Date

Description:
This type of value contains a Gregorian style date (starting from January 01, 0001) and time (accurate to 0.1 ms).

Literals:
A line of numbers enclosed in single quotation marks, formatted as follows: 'YYYYMMDDhhmmss', where:

  • YYYY. Four numbers defining the year (including the millenium and century)
  • MM. Two numbers defining the month
  • DD. Two numbers defining the date
  • hh. Two numbers defining the hour (24-hour format is used)
  • mm. Two numbers defining minutes
  • ss. Two numbers defining seconds.

In the 1C:Enterprise script, the Date literal must have values for the year, month, and day specified. To specify the earliest date available, simply enter '00010101'. You can omit the last characters (seconds, minutes, and hours), then the date parts will be equal to zero (time parts) or one (date parts). You can use various separators in date literals.

Availability: Thin client, web client, server, thick client, external connection, mobile application (client), mobile application (server). Exchange with server is available. Serializable. 
This object can be serialized to/from XDTO. The XDTO type that matches this object is defined in the namespace {http://www.w3.org/2001/XMLSchema}. The XDTO type name can be any of the following: dateTime, date, or time.


    

1C:Enterprise Developer's Community