Not able to understand “YYYY-MM-DDTHH:MM:SS” date format

前端 未结 3 570
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 03:47

I am trying to parse following date time string

2018-01-30T23:59:59.000

I am not able to understand which standard format it is like UTC or

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 04:23

    See the doc of SimpleDateFormat and try this:

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
    

提交回复
热议问题