Forum Discussion

Matt's avatar
Matt
New Contributor
6 years ago

Converting date into epoch

Hello,

We are calling an API that uses epoch date parameters. Is there a way to convert/parse UTC timestamps to epoch? I want to set a parameter startDate = Date.now() and in the GET POST query parameter, I want to call the startDate but parse it into the epoch.