07-19-2017 09:12 AM - edited 03-15-2019 06:29 AM
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
07-19-2017 11:45 AM
Can you attach your script?
07-19-2017 01:33 PM
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
07-20-2017 01:53 AM
Thanks Joshua
the website really helped
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide