Forum Discussion
CarolineS
Boss
Thank you very much, VikasB! I hadn't found the datesupport library in my searches - how very helpful!
Unfortunately, though, I can't get it to work.
${datesupport.parseAsIso8601(user.registrationTime)}
gives me
<div style="font-style: italic; font-weight: lighter; color: darkGrey; background-color: Beige; padding: 10px;" class="lia-widget-not-found"> This widget could not be displayed. </div>
Note that
${user.registrationTime}
DOES work to give me the user's registration time (sample result: Tue Mar 20 14:31:45 PDT 2018)
Do I need to do something special to enable datesupport?
Thanks!
CarolineS
7 years agoBoss
Ok, so user.registrationTime gives me a string formatted like this: "Wed Jun 14 15:37:14 PDT 2017" - which is not ISO format (example ISO format: 2017-06-14T15:37:14-07:00).
How can I turn the string that user.registrationTime gives me into ISO format (or just directly into milliseconds since the epoch...)
Related Content
- 4 years ago
- 13 years agoInactive User
- 6 years ago