Hi all,
I have text strings in variable RideDate that look like this:
2020/11/02, 16:56:12
2020/11/02, 16:46:33
2020/11/02, 13:57:04
2020/11/02, 13:56:56
With some even in this format too...
2020/11/07, 12:41:02 PM
2020/11/07, 12:33:24 PM
2020/11/07, 12:18:36 PM
2020/11/07, 12:14:33 PM
I need to extract the timestamp from this text string.
I have used this code to extract the date from the same variable:
>> gen Date=date(RideDate,"YMD###")
>> format Date %td
Thank you!
I have text strings in variable RideDate that look like this:
2020/11/02, 16:56:12
2020/11/02, 16:46:33
2020/11/02, 13:57:04
2020/11/02, 13:56:56
With some even in this format too...
2020/11/07, 12:41:02 PM
2020/11/07, 12:33:24 PM
2020/11/07, 12:18:36 PM
2020/11/07, 12:14:33 PM
I need to extract the timestamp from this text string.
I have used this code to extract the date from the same variable:
>> gen Date=date(RideDate,"YMD###")
>> format Date %td
Thank you!
Comment