In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Extracting Date from Filename

KamenRider
11 - Bolide

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

5 REPLIES 5
Bren_Spill2
12 - Quasar
12 - Quasar

See attached workflow

KamenRider
11 - Bolide

Hi @Bren_Spill2 

 

Would you know why I am getting a null result?

 

date.PNG

Hoping for your response. Thanks,

Kamen

nagakavyasri
12 - Quasar

@KamenRider  Try this:

 

Capture13.PNG

binu_acs
21 - Polaris

@KamenRider 

DateTimeParse(REGEX_Replace([File Name], '.*_(\d{2}\.\d{2}\.\d{2})_.*', '$1'),'%m.%d.%y')

image.png

Raj
16 - Nebula

Use this formula 

DateTimeParse((regex_replace([Field1], '.*_(\d{2}\.\d{2}\.\d{2}).*', '$1')), "%m.%d.%y")

delevering the required results

Labels
Top Solution Authors