Date format inquiry
Dear Mister/ Madam,
I have a date picker with (yyyy/MM/dd) format, but the deadline format of joget is (dd/MM/yyyy). So, I have tried to change the format of the date picker with the use of a Javascript (confirmed that it is work), in order to match the deadlines format, but the process does not work, while the log file is giving the following error massage
“The result of expression var d =newjava.text.SimpleDateFormat('dd/MM/yyyy'); d.parse(returnDate2); can't be evaluated - error message=Wrapped java.text.ParseException: Unparseable date: "" (#1)”
in which the “returnDate2” is my workflow variable which contains my formatted deadline.
What am I doing wrong or there is a better way to solve this problem without changing my date picker format?
Best regards