Alteryx Designer Desktop Discussions

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

Have separate Date and Time values - How to make a DATE/TIME value

brendafos
10 - Fireball

I have a field for Date and a field for time - but I need a DateTime value so I can do calculations to get Length of Stay resulting in Hours.

 

How do I do this?

Do I concat the two fields or is there a function for this?

 

Date example:

datetime.bmp

 

5 REPLIES 5
jack_morgan
9 - Comet

Hey there!

There are probably a bunch of different ways to do this but this is a pretty basic concat then reformat. Hope this does what you need!

Jack

MarqueeCrew
20 - Arcturus
20 - Arcturus

Here is an alternative version.

 

Thanks,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
brendafos
10 - Fireball

MarqueeCrew - Sincere Thanks!

Your example just showed me how to use Formula better.

MarqueeCrew
20 - Arcturus
20 - Arcturus

@brendafos you are quite welcome.  While I was completing my module, I saw that @jack_morgan had solved it and stated that there were a bunch of ways to solve it.  I'm glad to have had the opportunity to show you a new technique.  Please feel free to pass it along as your technique in the future.  

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Treyson
13 - Pulsar
13 - Pulsar

Thank you guys so much for this!

Treyson Marks
Senior Analytics Engineer
Labels