convert decimal to time - InfoPath Dev
in

InfoPath Dev

convert decimal to time

Last post 04-18-2016 05:39 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-10-2016 01:24 PM

    • rande
    • Not Ranked
    • Joined on 04-06-2016
    • Posts 1

    convert decimal to time

    Dear Friends, I'm using Infopath 2013 and I need convert a decimal number in hour and minutes... for exemple convert 30 in 00:30 convert 75 in 01:15 i tried use this formula concat(substring-before(field, ":"), ".", 100 * substring-after(field, ":") div 60) but its dosent work :(

     

    thanks to help me
  • 04-18-2016 05:39 AM In reply to

    Re: convert decimal to time

    Hi Rande,

    You need something like this; (substring-before(substring-after(field, "T"), ":") * 60) + (substring-before(substring-after(field, ":"), ":"))

    Note: this assumes date and time. If it's just try this: substring-before(field, ":") * 60) + (substring-before(substring-after(field, ":"), ":"))

     

    :)

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.