Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

parse String date vs Time Zone EEST EET

Have a problem with parse full date.toString();

private final DateFormat dfFull = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");
String str = "Wed Oct 30 13:05:26 EET 2013";
dfFull.parse(str);

OutPut

java.text.ParseException: Unparseable date: "Wed Oct 30 13:05:26 EET 2013"

The same problem with EEST

Help please

like image 957
Grigoriev Nick Avatar asked Oct 19 '25 01:10

Grigoriev Nick


1 Answers

Use "EEE MMM dd HH:mm:ss zzz yyyy" instead of "EEE MMM dd HH:mm:ss z yyyy"

like image 175
Ruchira Gayan Ranaweera Avatar answered Oct 22 '25 06:10

Ruchira Gayan Ranaweera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!