ERROR ON FORMULA - PARSING
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
kathbanc
8 - Asteroid
‎07-26-2023
09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Good Day,
I'm having this error on parsing DATETIME :
FORMULA TOOL SYNTAX : datetimeparse([actual_departure_dt],'%b %d, %Y %I:%M:%S %P')
ERROR : Formula (2) DATETIMEPARSE: Cannot convert "2/3/2022 10:19" to a date/time with format "%b %d, %Y %I:%M:%S %P" and language "English": Invalid month: '2/3/2022 10:19' -- expected at least three letters
INPUT : 2/3/2022 10:19
OUPUT : 2022-02-03 10:19:00.000
Thank you in advance
Labels:
- Labels:
- Developer Tools
- Tips and Tricks
5 REPLIES 5
Raj
16 - Nebula
‎07-26-2023
09:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
"datetimeparse([Date], "%m/%d/%Y %H:%M")"
use this formula this will work
‎07-26-2023
10:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Raj
16 - Nebula
‎07-26-2023
10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
2022-02-03 10:19:00 I get this as an output
Raj
16 - Nebula
‎07-26-2023
10:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Find attached
binuacs
21 - Polaris
‎07-26-2023
11:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@kathbanc The above formula will convert your input data to DateTime format YYYY-MM-DD HH:MM:SS, I think Alteryx doesn't support milli seconds format in DateTime type
