0
<date-time>2008-07-13T18:00:00</date-time>
4

1 回答 1

0

也许你正在寻找这样的东西:

String pattern = "'<date-time>'yyyy-MM-dd'T'HH:mm:ss'</date-time>'";
SimpleDateFormat format = new SimpleDateFormat(pattern);
Date date = format.parse("<date-time>2008-07-13T18:00:00</date-time>");
于 2011-03-24T09:52:38.003 回答