Convert Timestamp to Integer

Hi all,

Real quick question here - hoping for real quick solution...

It seems that Retool timestamps are text (don’t care why although it seems mighty strange).

I need to convert Retool timestamps to integers in the same way that other systems seem to use moment().valueOf() to return seconds elapsed in the UNIX epoch.

Can anyone tell me how this can be done using a curly-braces expression?

Many thanks as always...

Hey @patient_but_frustrated!

All you have to do is wrap that expression in curlies: {{ moment().valueOf() }} if you're looking to pass it the result of a particular component you can do that as well:

Hopefully that answers your question1