开发者

How to convert this datetime string into a Java date variable?

开发者 https://www.devze.com 2023-02-04 05:33 出处:网络
Sun Jan 09 2011 22:00:00 GMT+0000 (GMT Standard T开发者_如何学Goime) I have the above string coming from JavaScript.
Sun Jan 09 2011 22:00:00 GMT+0000 (GMT Standard T开发者_如何学Goime)

I have the above string coming from JavaScript.

How do I convert that into a Java DateTime?


With SimpleDateFormat.parse. See the pattern docs located up at the top of that page to help you figure out what pattern you want to use for your parsing format string.

0

精彩评论

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