Alteryx Designer Desktop Discussions

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

Convert serial date to date in "yyyy-mm-dd" format

Jsan2758
6 - Meteoroid

Hi, I need help in converting a serial date into a calendar date in the following format "yyyy-mm-dd".  For example, the input date is 43952 and the output should be 2020-05-01. 

 

2 REPLIES 2
grossal
15 - Aurora
15 - Aurora

Hi @Jsan2758,

 

try this formula:

 

DateTimeAdd("1900-01-01",[Date]-2,"days")

 

grossal_0-1586344681696.png

grossal_1-1586344690057.png

 

 

It's off by 2 days, but should be constant, therefore we can subtract it and be correct in the future.

 

 

Workflow attached. Let me know if it works.

 

Best

Alex 

Jsan2758
6 - Meteoroid

Hi Alex, 

 

Thanks so much - your solution works!

Labels