java - How can I parse UTC date/time (String) into something more readable? -
i have string of date , time this: 2011-04-15t20:08:18z
. don't know date/time formats, think, , correct me if i'm wrong, that's utc format.
my question: what's easiest way parse more normal format, in java?
what have iso-8601 date format means can use simpledateformat
dateformat m_iso8601local = new simpledateformat("yyyy-mm-dd't'hh:mm:ss'z'");
and can use simpledateformat.parse(). also, here blog post examples might help.
update:
read comments below before using solution.
Comments
Post a Comment