CarolineS
7 years agoBoss
Freemarker "date" to Unix timestamp?
Hi ya'll!
I'm attempting to implement a snippet of Javascript code within my community's page wrapper; the snippet requires the user's registration date in 10-digit-timestamp form.
I'm able to get user.registrationTime via Freemarker, but this is a string formatted like: "April 9, 2018 12:19:18 PM". Does anyone know how to convert this to a seconds-since-Epoch timestamp? I've searched Google / the Freemarker documentation but haven't found the info I need.
Thanks!
- Caroline