I am trying to parse the date format [[$-C09]dd\-mmm\-yy;@]
using SimpleDateFormat
with default Locale. But it throws:
java.lang.IllegalArgumentException: Illegal pattern character 'C'
How to parse the date using this date format? C09
in the date format denotes the Australian country code.
My Code snippet:
String pattern = "[$-C09]dd-mmm-yy;@";
SimpleDateFormat dateFormat = new SimpleDateFormat(pattern,Locale.getDefault());
Source:
Please refer the SO answers below for Country wide codes.