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

Day of the Year

krankin
7 - Meteor

Hello,

 

How do I determine that day of the year?  For example today, September 3, 2019 is the 246th day of the year.

 

Thanks.

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula
If you have a date field use,
Datetimeformat([field1], '%j')
LordNeilLord
15 - Aurora

Hey @krankin 

 

Check out this page: https://help.alteryx.com/10.1/Reference/DateTimeFunctions.htm

 

IN the section Date/Time Format Specifiers Used in Alteryx

krankin
7 - Meteor

Fantastic!  Thanks!

CharlieS
17 - Castor
17 - Castor

Here's the formula that includes the formatting:

 

DateTimeFormat(DateTimeParse("September 3, 2019","%B %d,%Y"),"%j")

Labels
Top Solution Authors