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

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?

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

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

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.

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