Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

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

Labels
Top Solution Authors