开发者

Convert XMl code to java code with expression

开发者 https://www.devze.com 2023-02-19 04:41 出处:网络
<date-time>2008-07-13T18:00:00</date-time> 开发者_JS百科Perhaps you\'re looking for something like this:
<date-time>2008-07-13T18:00:00</date-time>
开发者_JS百科


Perhaps you're looking for something like this:

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>");
0

精彩评论

暂无评论...
验证码 换一张
取 消