java - why my format always alerts error,when I use simpledateFormate -
the date string is: "wed jul 31 14:15:52 +0800 2013"
,my format string is:"e lll d hh:mm:ss zzz yyyy"
,but alert errors @ background.
java.text.parseexception: unparseable date: "wed jul 31 18:14:47 +0800 2013" (at offset 0)
can tell me fault in format string?
the correct format "e mmm dd hh:mm:ss zzz yyyy"
. there illegal character in format l
edit:
as per @reimeus's comment, android supports l
in format uses version of simpledateformat. l
should have been lll
?
Comments
Post a Comment