The getTime() method returns the number of milliseconds since January 1, 1970 for the specified date.
Declaration
DayPilot.Date.getTime();Return Value
Returns a number of milliseconds since 1970-01-01.
Example
const milliseconds = new DayPilot.Date("1970-01-01").getTime(); // 0See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot