Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date and time Parse tool

ssakshi2
5 - Atom

Hi Team,

We are trying to identify latest date from filename using DateTime parse tool by first importing all file name.

I am converting from String to Date/Time format

For Example, file name is 'Breakdown for analysis-20241025.csv'

I am putting below under 'Specify the format of the incoming string field' 

'Breakdown Report for analysis - %Y%m%d.csv'

But the Example box shows '''Break2own Report 0or analysis - 20241025.csv'

 

Question: Why Alteryx is reading 'd' as '2' and 'f' as '0'?

 
Attached is the screen shot of the Date Time Parse tool configuration.

 

3 REPLIES 3
Raj
16 - Nebula

@ssakshi2 
add the sample data will be in better place to help.

binuacs
21 - Polaris

@ssakshi2 If you are looking for extracting date you can try something like below

image.png

Raj
16 - Nebula

@ssakshi2 

It looks like Alteryx is interpreting characters in your date format specifier as placeholders rather than as literal text due to a minor formatting issue.

In the DateTime Parse tool, any literal text in your date format string (such as “Breakdown for analysis - ”) should be enclosed within single quotes (' ') so that Alteryx doesn’t misinterpret letters as format codes. Your updated format string should look like this:

'Breakdown for analysis - '%Y%m%d'.csv'

hope this helps.

Labels
Top Solution Authors