user.region or default locale question# Java - 爪哇娇娃
m*s
1 楼
I am running windows XP.
I just wrote a simple clien testing SimpleDateFormat.
I defined the format to be "MMM dd yyyy" which should take in letters for
month and digits for day and year. When I call the parse method with "Oct 19
2003" it actually failed on parseException.
After a few searches around, it might be related to user.region or default
locale problem. mine for some reason is set to user.region=cn.
Does anyone know how to change it within XP(not in java code) to us?
thanks a lot
I just wrote a simple clien testing SimpleDateFormat.
I defined the format to be "MMM dd yyyy" which should take in letters for
month and digits for day and year. When I call the parse method with "Oct 19
2003" it actually failed on parseException.
After a few searches around, it might be related to user.region or default
locale problem. mine for some reason is set to user.region=cn.
Does anyone know how to change it within XP(not in java code) to us?
thanks a lot