ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

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

mark_paul
アステロイド

Hi All,

 

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

 

Thanks,

Mark

2件の返信2
JoeS
Alteryx Alumni (Retired)

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 

ラベル
トップのソリューション投稿者