Convert (parse) time format to numerical value (double)

Easy problem, however I can’t google myself to any post concerning the conversion this way…

examples:

07:30:00 -> 7,5
01:45:00 -> 1,75
02:00:00 -> 2

How do I do this? Thank you for any insight!
Jakob

1 Like

Hi
if the input is with str_input variable
then
str_output = Split(str_input.ToString,":")(0).ToString.TrimStart(“0"c)+”,"+Math.Round(((cint(split(str_input.ToString,":")(1).ToString)*100)/60)).ToString

Cheers @Jakob_Petersen

1 Like

Thank you once again @Palaniyappan, my trusted support! <3

Jakob

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.