105
Views
1
Comments
Solved
Timestamp to DateTime
Question
Application Type
Reactive
Service Studio Version
11.54.52 (Build 63199)
Platform Version
11.27.0 (Build 42539)

I have a timestamp 1.711541439226E12. If i use that timestamp to generate DateTime in JS, I got the following output.



Now my question is how can I convert the timestamp to OutSystems DateTime in a server action?

2021-06-02 20-50-04
Márcio Carvalho
Solution

Hey!

Can you test this?

AddSeconds(NewDateTime(1970, 1, 1, 0, 0, 0),put timestamp here)

There's this post I also had a look and there's others which might be interesting

https://www.outsystems.com/forums/discussion/52092/convert-text-unix-timestamp-to-datetime/#Post194259

Example: I tried 1711550734

And is retuning me

Let us know if it helped you!

Kind regards,

Márcio

TimeStampToDatetime.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.