Date and Time
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
JAIN2
6 - Meteoroid
‎02-14-2022
05:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
02-FEB-22 05.02.58.000000000 PM |
Hi All,
Does anyone how to convert above string in a date and time format in AM and PM. I tried this and it works but does not consider AM PM.
DateTimeParse([Field1],'%d-%b-%y %H.%M.%S')
Regards,
Rahul Jain
Labels:
- Labels:
- Data Investigation
2 REPLIES 2
21 - Polaris
‎02-14-2022
06:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@JAIN2
We need use the Specifier '%p' as below
amruthas2
8 - Asteroid
‎02-14-2022
10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @JAIN2
Alteryx by default trims milli seconds - seems it is stil not implemented
Add DateTime type with milliseconds - Alteryx Community
If milliseconds doesnt impact your calculation much , You can use the below formula,
DateTimeFormat(
ToString(DateTimeParse([Date],'%d-%b-%y %H.%M.%S'))
,'%d-%b-%y %H.%M.%S %p')
