Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

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
Managing Partner
DCG Analytics
Labels
Top Solution Authors