Use of moment.js 'x' format

Hello

I want to get a millisecond Unix timestamp

The moment.js format ‘x’ should provide this. Reference: Moment.js cheatsheet

The following expression

datetimetotext(@App Info.Current Date and Time , ‘X’, ‘UTC’)

will return a 13 digit number (as I expected) but the millisecond portion is ‘000’

I expected: 1756819684445

I got: 1756819684000

Is there a Tulip setting to make this work correctly?

I was intrigued so I did some testing here. This isn’t a moment js problem.

From my limited understanding I believe that the Current Date and Time function is always rounded to the second in Tulip. No milliseconds.

This isn’t the end of the world, in my opinion, but it is worth documenting as either a bug or a part of the product.

However, Tulip’s datetime datatype is definitely capable of storing and processing timestamps to the millisecond.