Forum Discussion
DolanH
Khoros Staff
According to this documentation, you should be able to use the ?long builtin against the backing date to get the epoch date: https://freemarker.apache.org/docs/versions_2_3_17.html
CarolineS
7 years agoBoss
Thank you, DolanH!
Unfortunately, this isn't working for me, as the ?long only works on a number, and the date I'm working with appears to just be a string.
Here's the error, in case you're curious:
For "?long" left-hand operand: Expected a number, but this has evaluated to a string (wrapper: f.t.SimpleScalar): ==> user.registrationTime [in template "Hitbox" at line 6, column 53]
I'll keep working on this!
Related Content
- 4 years ago
- 13 years agoInactive User
- 6 years ago