Parse Date String to Some Java Object

前端 未结 6 2202
太阳男子
太阳男子 2020-11-28 15:41

I am working in a project that reads files and processes data. There I got to work with dates for example:

  1. 2012-01-10 23:13:26
  2. January 13, 2012
  3. <
6条回答
  •  孤独总比滥情好
    2020-11-28 16:11

    JodaTime is largely considered the de-facto standard for date-time processing in Java - they're working to get it added to the next version of the Java library (well, effectively).

    For getting JodaTime dates from strings, you're going to want to look into the DateTimeFormat class.

提交回复
热议问题