toMillis($date)
Constructs a millisecond value (since 1970-01-01:00:00.000) from the given date value date.
The inverse function is toDate($number).
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| date | Business object | A date value to be converted into milliseconds. | yes |
Type: Number
The milliseconds representing the date value since 1970-01-01:00:00:00,000.
Note: The output may differ depending on the calendar's time zone.
date(2012, 5, 5).toMillis()
Output: 1.338.822.000.000