Convert System date time to milliseconds

Hello everyone,

Please I would like to convert the system date time to milliseconds.
In another word, I looking for the equivalent of this java code “system.currenttimemillis()” in order to use it in UiPath.

Thank you in advance for your help.

Hi @nourchene.ben-elouehma

can u try this

Nived N
Happy Automation


Thank you for your help.
But (Now-Now.AddDays(-1)).TotalMilliseconds.ToString returns always the same result which is 86400000.
So, it didn’t solve my problem.

Best regards,

I found the solution.
The equivalent of System.currentTimeMillis() is CLng((Datetime.Now - New DateTime(1970, 1, 1)).TotalMilliseconds).ToString
I found it in the response below

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.