Alteryx Designer Desktop Discussions

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

Convert Military time to a float number

ISUGraber
8 - Asteroid

Hi Everyone,

This may sound like an odd question but can someone tell me how I can convert military time (24 hour time) to a float number?

 

So for instance 5:15pm which I've converted to 17:15 already, can I convert that 17:15 string to 17.30 float number?

2 REPLIES 2
jrgo
14 - Magnetar

Hi @ISUGraber 

 

Like this?

jrgo_0-1572545446556.png

 

TONUMBER(REPLACE([Field1], ':', '.'))

 

danilang
19 - Altair
19 - Altair

Hi @ISUGraber 

 

You use this formula to convert to decimal(float) time

 

[hour]+[minutes]/60

 

Giving

r.png

 

Dan

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels