Alteryx Designer Desktop Discussions

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

DateTimeFormat error

carterfleming
8 - Asteroid

I'm trying to achieve three goals with a single Formula tool. First, I'm filling Nulls in one date column with dates from another column:

carterfleming_0-1673530432802.png

Then, I'm trying to ensure that the formatting for this column is in proper format. For reference, the existing column that originally had Nulls was not formatted in Alteryx date format, but the column I pulled in to fill the Nulls was already in Date format.

carterfleming_1-1673530522205.png

Finally, I want to create a new column that populates the last day of the month for whatever date is in the Billing Period column. For example, if Billing Period = 2022-01-05, I want this new column to populate as 2022-01-31.

carterfleming_2-1673530607010.png

 

My issue is that I keep getting a ton of conversion errors saying that some months are not valid Dates or Time.

carterfleming_3-1673530656148.png

 

 

I've searched all over the Alteryx discussion boards and haven't been able to find a solution that fits this scenario exactly. Any and all help is greatly appreciated!

12 REPLIES 12
binuacs
21 - Polaris

@DavidSkaife I think the DateTimeFormat function only takes Date/DateTime data types, can you test ?

DavidSkaife
13 - Pulsar

Hi @binuacs 

 

Already tested before posting:

 

DavidSkaife_0-1673533649135.pngDavidSkaife_1-1673533663555.pngDavidSkaife_2-1673533679374.png

 

The date itself must be in the ISO standard format though, otherwise it won't work.

binuacs
21 - Polaris

@DavidSkaife okay , it should be in ISO format, that is the catch . I was testing different format, Thanks 😊 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels