<?phpvar_dump(strtotime("12/01/2019")); var_dump(date("Y-m-d", strtotime("12/01/2019"))); // "2019-12-01"
Standard input is empty
int(1575158400) string(10) "2019-12-01"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!