我创建了具有日期字段的CSV文件,格式为12-08-2018.当我在Excel工作表中打开csv文件时,它会以12/AUG/2018格式显示并保存到文件中.
当我试图解析它时,我错了:
<?php echo date('Y-m-d',strtotime('12/AUG/2018')); // 1969-12-31 ?>
那么,什么是处理excel表格中的日期解析的最佳方法.
php csv excel date strtotime
csv ×1
date ×1
excel ×1
php ×1
strtotime ×1