In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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