bob.nims
(Bob Nims)
July 27, 2022, 7:54pm
1
I need to pull out the epoch time from this file name MyProfileData1652263200006.xlsx
, convert it to a readable date time format, and make it into a variable.
I am pretty sure I could figure out how to parse out the numbers with regex but have no idea how to convert the number.
bob.nims
(Bob Nims)
July 27, 2022, 8:52pm
3
Thank you Peter. I will give this a try after my current automation ends. I appreciate it!
ppr
(Peter Preuss)
July 27, 2022, 9:16pm
4
Perfect
we would also recommend regex for the extraction
the String, number, date conversion would look like below:
DateTimeOffset.FromUnixTimeMilliseconds(CLng(strNumberVar))
bob.nims
(Bob Nims)
July 27, 2022, 10:00pm
5
That worked really well Peter. Is there a simple way inside that command to only show the date and time? I don’t really need the +00:00
Either way it is super helpful. Thank you so much!
ppr
(Peter Preuss)
July 27, 2022, 10:07pm
6
we can control a formated string of date and time like:
2 Likes
bob.nims
(Bob Nims)
July 27, 2022, 10:29pm
7
bob.nims:
1652263200006
Perfect! Thank you again!
system
(system)
Closed
July 30, 2022, 10:30pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.