PHP how to convert dd/mm/yy to yyyy-mm-dd

前端 未结 0 1707
再見小時候
再見小時候 2021-01-19 01:06

I\'m trying to convert convert dd/mm/yy to yyyy-mm-dd. After i researched several methods and I found this.

$var = \'20/01/2021\'; 
$date = str_replace(\'/\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题