Making DateTime to epoch

0
Dear forum, is there any function in mendix translating a datetime variable from a datepicker into a string with the respective epoch/unix time for a REST Call? I assume this must be a simple operation but I wasn’t able to find anything in the forum. Thanks Jonas
asked
1 answers
3

Jonas,

Community Commons has a Java action called DateTimeToLong that will convert a date time to Unix/Epoch timestamp.  To convert to string, you can use toString() or use an export mapping to do the conversion.

Hope that helps,

Mike 

answered