Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Convert Duration to DateTime

    Posted 07-13-2022 09:06
    No replies, thread closed.
    Hi All,

    Sorry for the stupid question, but how can I convert the Duration type value to the DateTime type value or extract from it hours, minutes, and seconds?

    Thanks,
    #ArchitectureandDesign

    ------------------------------
    Irina Milstein
    ITNAV-Pro Ltd.
    ------------------------------


  • 2.  RE: Convert Duration to DateTime
    Best Answer

    Posted 07-13-2022 09:24
    No replies, thread closed.
    Use ToInt to convert it to milliseconds (1 second = 1000 milliseconds).  Then do math to get hours/minutes/seconds.  Then if you want a datetime, use MakeDateTime with those values plus whatever year, month & day you want.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Convert Duration to DateTime

    Posted 07-13-2022 10:54
    No replies, thread closed.
    Thank you for your help, Melissa!

    ------------------------------
    Irina Milstein
    ITNAV-Pro Ltd.
    ------------------------------