SOLVED
Extracting Date from Filename
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
KamenRider
11 - Bolide
‎01-11-2024
01:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Good day,
Can I ask for you help in extracting the date from a filename? See below filename.
DDB Fest.Daily_01.05.24_Final.xlsx
DDB Sander Daily_01.08.24_Final.xlsx
Results of date should be 2024-01-05 and 2024-01-08.
Thanks and looking forward for your assistance.
Kamen
Solved! Go to Solution.
Labels:
- Labels:
- Common Use Cases
- Date Time
5 REPLIES 5
12 - Quasar
‎01-11-2024
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎01-11-2024
01:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Bren_Spill
Would you know why I am getting a null result?
 
Hoping for your response. Thanks,
Kamen
nagakavyasri
12 - Quasar
‎01-11-2024
01:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
binuacs
21 - Polaris
‎01-11-2024
01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DateTimeParse(REGEX_Replace([File Name], '.*_(\d{2}\.\d{2}\.\d{2})_.*', '$1'),'%m.%d.%y')
Raj
16 - Nebula
‎01-11-2024
02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Use this formula
DateTimeParse((regex_replace([Field1], '.*_(\d{2}\.\d{2}\.\d{2}).*', '$1')), "%m.%d.%y")
delevering the required results
