date format yyyy-MM-ddTHH:mm:ssZ

后端 未结 9 2246
走了就别回头了
走了就别回头了 2020-11-28 04:49

I assume this should be pretty simple, but could not get it :(. In this format Z is time zone.
T is long time pattern
How could I get a date in this format excep

9条回答
  •  庸人自扰
    2020-11-28 05:00

    Look here at "u" and "s" patterns. First is without 'T' separator, and the second one is without timezone suffix.

提交回复
热议问题