DayPilot.Date Constructor


Creates a new instance using the current local date and time.


Creates a new instance using a date specified in ISO 8601 format ("2015-01-01T00:00:00").

Accepted formats:

  • "2015-01-01"
  • "2015-01-01T00:00:00"
  • "2015-01-01T00:00:00.000"
  • "2015-01-01T00:00:00Z"
  • "2015-01-01T00:00:00.000Z"
  • "2015-01-01T00:00:00+01:00"
  • "2015-01-01T00:00:00.000+01:00"

Please note that DayPilot works with a single idealized timezone (see also Scheduler Time Zones). That's why it is recommended to use the date/time formats without the time zone information.

DayPilot.Date(date, isLocal)


  • date (Date) - Date object which should be used to set the initial value. If it is null, current local date and time will be used.
  • isLocal (bool) - if true, the date parameter is read as local time; if false the GMT base of date is used