Alteryx Designer Desktop Discussions

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

Date from excel

Kjaer
8 - Asteroid

Hi

I have an excel fil with a column of dates in the format dd-mm-yyyy. But when I import the file the dates are listed i excelnumber (ex. 28-02-2022 becomes 44620). How can I convert this column to dates again?

3 REPLIES 3
Adrian_T
Alteryx Alumni (Retired)

Hey @Kjaer, the ToDate formula will work for you here. ðŸ˜Š

 

Specifically,

 

ToDate(7000) returns 1919-03-01 as a date.

 

 

This previous community post should give your more clarity as well!

gautiergodard
13 - Pulsar

hey @Kjaer 

You can use this formula, also attaching workflow for your reference!

if isnull([Field1]) then DateTimeParse(DateTimeAdd(ToDateTime('1900-01-01'),[Field1],'days'),'%Y-%m-%d') else [Field1] endif

Hope this helps!

Kjaer
8 - Asteroid

It works :-)) Thanks.

Labels
Top Solution Authors