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-01T00:00:00"
  • "2015-01-01"

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