
Specialist
2020-05-14
02:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Convert Timestamp to time only
I have a field 'ActivityDate' that appears as such: 2019-12-29 19:65:47.330 I want to convert this to time, specifically AM/PM time format. Ideally, I want to do this in the script, how can I achieve this?
1,577 Views
1 Solution
Accepted Solutions


MVP
2020-05-14
03:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you'd have two options here, both of which should work:
1) MakeTime(Hour(YourTime),Minute(YourTime),Second(YourTime))
2) Time(Frac(YourTime))
Either one can be further formatted, of course.
1 Reply


MVP
2020-05-14
03:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you'd have two options here, both of which should work:
1) MakeTime(Hour(YourTime),Minute(YourTime),Second(YourTime))
2) Time(Frac(YourTime))
Either one can be further formatted, of course.
