DayPilot.Date Constructor

DayPilot.Date()

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

DayPilot.Date(string)

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)

Parameters:

  • 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

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java