Hi ,

my dataset has a datetime string like this:

Code:
clear
input str28 activityDateTime
"2022-11-29T18:42:07.5027244Z"
"2022-11-29T18:42:06.8798184Z"
"2022-11-29T18:42:05.4312594Z"
"2022-11-29T18:32:22.4548754Z"
"2022-11-29T18:30:08.0438916Z"
"2022-11-29T18:29:27.8196684Z"
"2022-11-29T17:21:02.8832722Z"
"2022-11-29T17:21:02.266528Z" 
"2022-11-29T17:21:01.0909388Z"
"2022-11-29T14:42:34.7783454Z"
end
I am curious about how do I convert them to numerically encoded Stata format (clock, maybe) retaining as much precision as possible, elegantly, I mean, not splitting the string.

thks.