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

DateTimeFirstOfTheMonth Format

JonathanRichey
7 - Meteor

What is the output format of the DateTimeFirstOfTheMonth function? Also is it possible to nest the functions below?

 

[Previous_Month] =
DateTimeFormat(DateTimeAdd(DateTimeFirstOfMonth(),-1,"months")"%Y%M")

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

@JonathanRichey,

 

DateTimeFormat(DateTimeAdd(DateTimeFirstOfMonth(),-1,"Months"),"%Y%m")

the M must be m.

 

M = Minutes

m = Month

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors