Alteryx Designer Desktop Discussions

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

Date Format

patrickcogley
5 - Atom

The excel file I'm using has a date field that lists month, date, year, time

 

Here is an example:

 

8/2/2021 1:24:56 PM (displayed in excel as Aug 2, 2021 01:24:56 PM)

 

However, when I bring the sheet into Alteryx it displays as:

 

44410.558981

 

How can I convert this from a V_WString back to a Date field?

 

Thanks!

8 REPLIES 8
thiago_belarmino
8 - Asteroid

Hello @patrickcogley 

Try this it.

 

thiago_belarmino_0-1628788642324.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @patrickcogley 

 

You can use ToDateTime([Field1])

 

Workflow:

atcodedog05_0-1628788808122.png

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Hi @patrickcogley 

 

If its in v_wstring format you can use below formula.

 

ToDateTime(ToNumber([Field1]))

 

Hope this helps : )

thiago_belarmino
8 - Asteroid

Well, my solution only took the date.

Very good @atcodedog05

patrickcogley
5 - Atom

I'm still getting a [Null] value when I run this formula.

atcodedog05
22 - Nova
22 - Nova

Hi @patrickcogley 

 

Can you share snapshot of the workflow and is there any warning? If yes can you please share snapshot of that too ?

patrickcogley
5 - Atom

This solution worked! Thanks

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @patrickcogley 

Cheers and have a nice day!

Labels