We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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