--- title: "system.date.toMillis" description: "Converts a Date object to its millisecond value elapsed since January 1, 1970, 00:00:00 UTC (GMT)" --- # system.date.toMillis > Converts a Date object to its millisecond value elapsed since January 1, 1970, 00:00:00 UTC (GMT) This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.date.toMillis(date)` ### Parameters Type | Parameter | Description ------- | ------- | ------ Date | `date` | The date object to convert. ### Returns **Integer** - an 8-byte integer representing the number of millisecond elapsed since January 1, 1970, 00:00:00 UTC (GMT) ### Scope Gateway, Vision Client, Perspective Session ## Code Examples ```python title="Code Snippet" # This example takes the date Fri Aug 18 14:35:25 PDT 2017, # and prints it out 1503092125000. date = system.date.getDate(2017, 7, 18) datetime = system.date.setTime(date, 14, 35, 25) print system.date.toMillis(datetime) ```