One way to convert a string from yyyy-mm-dd is to use the SimpleDateFormat java.util class like:
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd”);
java.util.Date convertedDate = sdf.parse(“2010-11-16”);
I’ve attached a sample portlet application that accepts a user input string, and then generates and displays the date. All date controls use the browser locale by default, unless configured differently.
I could’ve used a converter instead of two properties but i didn’t. It’s your choice.
Regards,
–mark
DateLocaleTestApp.zip (9.31 KB)
#MWS-CAF-Task-Engine#webMethods-BPMS#webMethods