cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1771
Views
10
Helpful
3
Replies

UCCX convert string on date to be prompted to customer

lliborio05
Level 1
Level 1

Hi,

I'm receiveing a date on a string with the format "mm/dd/yyyy" and need to convert into a date so that it could be prompted with a Generated Prompt type date.

If i set directly the date will not be correct.

Whats the best way to convert the string into date format, so that it can be prompted?

see attach

Thanks

Regards

3 Replies 3

seanvaid
Level 3
Level 3

Can you attach your script?

I had a requirement for very specific date/time formatting and this is what I came up with. I don't know the specific format required for prompt generation but you can change the yyyy-mm-dd and HH:mm:ss to any format you want that works with java and it will work. I know it isn't the cleanest way to do this but it will work in a pinch.

sCreationDate and sCreationTime are string variables that are blank.

This website has additional info on this.

https://samiamsamdotcom.wordpress.com/2014/07/08/uccx-tipstricks-today-yesterday-tomorrow-any-day/#more-1167

Thanks Joshua

the website really helped

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: