php date strtotime format

Solutions on MaxInterview for php date strtotime format by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "php date strtotime format"
Giovanna
24 Jun 2017
1$date = '25/05/2010';
2$date = str_replace('/', '-', $date);
3echo date('Y-m-d', strtotime($date));
4