MID,LEFT,RIGHT functions in Alteryx | Regx
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
Sarath27
5 - Atom
‎05-29-2024
09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
StartDate - 20211223
I want this to be transformed into a date as "23/12/2021".
Pls suggest me the formula or regex to bring this.
Thanks.
Labels:
- Labels:
- Data Investigation
- Date Time
3 REPLIES 3
17 - Castor
‎05-29-2024
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Sarath27 you would need to use a combination of datetime parse and dateformat formulas to achieve your results.
17 - Castor
‎05-29-2024
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Sarath27, you can use the following in a Formula tool:
DateTimeFormat(DateTimeParse([StartDate], '%Y%m%d'),'%d/%m/%Y')
Deano478
12 - Quasar
‎05-29-2024
09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Sarath27 to add to @DataNath and @JosephSerpis solutions if you use this format the value will need to be stored as a String
