Split date/time strings

后端 未结 7 1844
不思量自难忘°
不思量自难忘° 2020-12-18 03:32

I have a ReST service which downloads information about events in a persons calendar...

When it returns the date and time, it returns them as a string

e.g. d

7条回答
  •  囚心锁ツ
    2020-12-18 03:45

    Use SimpleDateFormat (check api docs). If you provide proper time pattern it will be able to convert string into Date instantly.

提交回复
热议问题