How to convert the following DateTime to YYYY-MM-DD HH:MM?

后端 未结 0 325
半阙折子戏
半阙折子戏 2021-01-06 02:40

I want to convert 2021-01-05T11:00:00.153309-07:00 to YYYY-MM-DD HH:MM. I am expecting 2021-01-05 11:00. If 2 pm, then I am expecting 2021-01-05 14:00

I tried this,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题