PHP时间date格式转换为JAVA -T格式

喜欢ヅ旅行 2023-01-17 03:13 26阅读 0赞

gmdate函数

$tr_info[‘release_date’] = ‘2021-04-24 16:57:13’;

  1. if (!empty($tr_info['release_date'])) {
  2. $tr_info['release_date'] = str_replace('+00:00', '.000', gmdate('c', strtotime($tr_info['release_date'])));
  3. }

$tr_info[‘release_date’] = ‘2021-04-24T16:57:13.000’;

发表评论

表情:
评论列表 (有 0 条评论,26人围观)

还没有评论,来说两句吧...

相关阅读