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

How to convert datetimetoday() to dd-Mon string format?

kalindideshmukh
7 - Meteor

Hello Alteryx designers,

 

My aim is to filter my rows that match with datetimetoday() function in dd-Mon format.

My dataset has variable 'Date' in the dd-Mon format (example: 01-Dec). Alteryx identifies it as a string. I tried two ways:

 

1. Converted using the Date Conversion tool, but the output date looks like 01-Dec-1400; the year 1400 gets attached to every date. If I could remove the year or add 2019 to every date, that would work.

 

2. Filter function tool that compares Date with datetimeparse for datetimetoday in dd-Mon format, but it shows 0 records.

 

It would be great if either of the ways was fixed. 

 

Thanks

 

Kalindi

2 REPLIES 2
MichalM
Alteryx Alumni (Retired)

@kalindideshmukh 

 

You can use the formula tool to parse the DateTimeToday into the format you need

DateTimeFormat(DateTimeToday(), "%d-%h")

 

dttoday.png

kalindideshmukh
7 - Meteor

@MichalM

Great, it worked! Thanks.

Labels
Top Solution Authors