I am interested in getting the timestamp numeric only in UIPath. Is there a direct function for the same?
I am using System.DateTime.
but it gives it in a specific dd:mm
or whichever format I specify it to. But I am only interested in numeric value of timestamp and not the date time.
Hi,
How about ToFileTime method?
Now.ToFileTime
Regards,
What’s Now ? System.Datetime?
Hi,
Yes. it’s one of DateTime properties. It means current datetime.
We can also write like dateTimeVar.ToFileTime.
Regards,
Hmm, it gives some System Time but not sure what exactly is the unit. Here’s an image for comparison:
Is it in nano seconds or something else?
Hi,
Please see the following in details.
If it’s not what you expect, can you share same examples?
Regards,
Ah Okay, I got it now… Most of the datetime starts from 1970 and so that’s why it was giving an Invalid date. Thanks anyways it resolved my issue.
Hi,
FYI, the following also returns numeric value regarding datetime.
ToOADate (returns as double like excel serial value (from 1900/1/0)
UnixTime (from 1970/1/1)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.