toMillis

Syntax

	toMillis($date)

Description

Constructs a millisecond value (since 1970-01-01:00:00.000) from the given date value date.

The inverse function is toDate($number).

Parameters

Name Type Description Mandatory Default
date Business object A date value to be converted into milliseconds. yes

Return value

Type: Number

The milliseconds representing the date value since 1970-01-01:00:00:00,000.

Examples

Note: The output may differ depending on the calendar's time zone.

	date(2012, 5, 5).toMillis()

Output: 1.338.822.000.000