The DateTime class can be used in situations like this - it has the useful method createFromFormat $date='10/09/19'; //dd/mm/yy $new=DateTime::createFromFormat('d/m/y', $date )->format('Y/m/d'); echo $new; //2019/09/10 这篇关于DD/MM/YYYY的strtotime无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 22:42