%dw 2.0
import * from dw::util::Timer
output application/json
---
{ "toMilliseconds" : toMilliseconds(|2018-07-23T22:03:04.829Z|) }
Dataweave
toMilliseconds
toMilliseconds(DateTime): Number
Returns the representation of a specified date-time in milliseconds.
Parameters
Name | Description |
---|---|
|
A |
Example
This example shows a date-time in milliseconds.
Source
Output
{ "toMilliseconds": 1532383384829 }
XML