<?php
echo date("Y-m-d", strtotime("20 days ago"));
O/P: 2016-05-05 // Today is 2016-05-25
echo date('Y-m-d',strtotime('12/15/2008'));
O/P: 2008-12-15
?>
echo date("Y-m-d", strtotime("20 days ago"));
O/P: 2016-05-05 // Today is 2016-05-25
echo date('Y-m-d',strtotime('12/15/2008'));
O/P: 2008-12-15
?>
0 comments:
Post a Comment