0
点赞
收藏
分享

微信扫一扫

日期时间转为数字20180227165023(2017年12月06日 10:30:38)

倪雅各 2022-07-27 阅读 147


2017年12月06日 10:30:38

变为数字

20180227165023

$time=date("Y-m-d H:i:s",time());
$number=date('Y').date('m').date('d').date('H').date('i').date('s');

 

20191116203507(不是时间截) 转 2017-09-14 12:32:16

$starttime1='20191116203507';
$starttime=substr($starttime1,0,4).'-'.substr($starttime1,4,2).'-'.substr($starttime1,6,2).' '.substr($starttime1,8,2).':'.substr($starttime1,10,2).':'.substr($starttime1,12,2);
dump($starttime);die;

输出:2019-11-16 20:35:07

 

 

 

举报

相关推荐

0 条评论