Legacy Dev Forum Posts

 View Only

Sign Up

Change format Scripter. Agent Call Start Time + Scripter. Customer Call Start Time

  • 1.  Change format Scripter. Agent Call Start Time + Scripter. Customer Call Start Time

    Posted 06-05-2025 19:09

    NathanCorsen | 2018-05-31 16:42:24 UTC | #1

    Is there a way to change the format of the Scripter. Agent Call Start Time or Scripter. Customer Call Start Time variable to only include the time without the timezone?

    I am generating a URL used by a third party system using the values of the above variables to pre-fill fields inside a form. Both variables are giving an output in a format that doesn't work me. The variables stores the time zone leading into an output like this as example: 11:50 AM (+2:00). Can I modify these variables only to include the actual time (11:50 AM)?

    If this isn't possible is there any workaround for achieving this?


    tim.smith | 2018-06-01 02:26:53 UTC | #2

    The short answer is no, not without an external integration of some sort to do the calculation for you. See some recent discussion about this in this thread: https://developer.mypurecloud.com/forum/t/script-dynamics-variable-add-minutes-to-scripter-agent-call-start-time/2836


    NathanCorsen | 2018-06-01 05:52:53 UTC | #3

    I have been searching on this forum and I am now using a variable that contains the DateTime in UTC format. I am using the AddHours expression within Architect to convert UTC to a local time format.

    The solution is described in this article: https://developer.mypurecloud.com/forum/t/converting-utc-time-to-local-time/2370/3


    tim.smith | 2018-06-01 12:44:49 UTC | #4

    NathanCorsen, post:3, topic:2937
    I am using the AddHours expression within Architect

    I thought you were posting about using variables in Scripts, which does not offer date manipulation tools. You can do some date manipulation in Architect.


    system | 2018-07-02 12:44:50 UTC | #5

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


    This post was migrated from the old Developer Forum.

    ref: 2937