SOLVED
Extract Date from a 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
‎10-02-2024
12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
Can I ask for your assistance in extracting the date and then convert it to format mm-dd-yyyy.
KB_XXXBULK_AGENCY_C_20240920_S1_Input
PB_XXXBULK_AGENCY_C_20240920_S1_Input_compress
LB_XXXBULK_MUMBO_20240920_S1_Input
BC_SIDELINE_MUMBO_20240927_S1_Input
XB_SIDELINENEW_MUMBO_20240927_V1_Input
MO_TUNDED_MUMBO_20240927_S1_Input_Talidation_compress.best.in
Thanks,
Kamen
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
- Tips and Tricks
- Workflow
2 REPLIES 2
SPetrie
13 - Pulsar
‎10-02-2024
12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
assuming no other 8 character long number sequences and always an 8 character date, this formula should do it
DateTimeParse(REGEX_Replace([Field1],".*(\d{8}).*","$1"),"%Y%m%d")
‎10-02-2024
12:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much.
