How to get Current Date Time in Architect

How to get the current date-time? and store in a variable to play this for the caller.
EG: I want to play the date-time to the caller when they called.

Hi suresh,

You could use the built-in function GetCurrentDateTimeUtc() to get the DateTime value in UTC and play that back. If you want the DateTime for a particular timezone you'll have to apply other functions like AddHours() and AddMinutes() to the value. Finally if you're dealing with DST calculations, this article should help you with some sample expressions to make it easier:

1 Like

Thank you so much, it works.
May I know how to find the list of available built-in function in purecloud.
I cannot find any document in help.mypurecloud.com to learn that.
So could you please share with me the link for the built-in function, where I can find and learn built-in function ?

Hello,

I don't think there is a document on help.mypurecloud.com listing the available functions.

But it is available via Architect, selecting Expression Help (menu with the question mark icon at the top right of your page).

See here and here for info on accessing Expressing help.

Regards,

Thank you so much.

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