Alteryx Designer Desktop Discussions

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

How to pass current year and Month parameters based on the system date to workflow?

mark_paul
8 - Asteroid

Hi All,

 

How to pass current year and Month parameters based on the system date to workflow?

 

Thanks,

Mark

2 REPLIES 2
JoeS
Alteryx
Alteryx

Hi @mark_paul 

 

DateTimeNow() within the formula tool will give you the data and seconds.

DateTimeToday() will give you just todays date.

 

You can then use DateTimeFormat(DateTimeNow(),"myformat") if you need to change the presentation of the date. Alteryx date format is CCYY-MM-DD

 

Thanks

Joe

danilang
19 - Altair
19 - Altair

Hi @mark_paul 

 

DateTimeYear(DateTimeToday()) returns the current year

DateTimeMonth(DateTimeToday()) returns the current month, 1-12

DateTimeFormat(DateTimeToday(),"%B") returns the current month name, October, Change "%B" to "%b" to get the abbreviation, Oct

 

Dan 

Labels