日期时间转为数字20180227165023(2017年12月06日 10:30:38)"/>
日期时间转为数字20180227165023(2017年12月06日 10:30:38)
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
更多推荐
日期时间转为数字20180227165023(2017年12月06日 10:30:38)
发布评论