posted 20 years ago
Hi i have problem in using SimpleDateFormat.
The code:
//------------------------------------------------------------------------
DateFormat df = new SimpleDateFormat("yy/DD/MM hh:mm");
try{
startTime = df.parse("04/30/06 10:30");
System.out.print ("Date: " + startTime)
}catch(ParseException e){
throw new IllegalArgumentException("Can't parse Start date");
}
//-------------------------------------------------------------------------
this code works fine when im using eng win2k and system locale = chinese taiwan.
but when i change the system locale to Thai, it shows the year is 2046, but my system clock still display 2004.
Please Help
Thanks
Lester