0 like 0 dislike
950 views
in Education & Reference by

2 Answers

0 like 0 dislike
by
<?php
date('Y-m-d h:m:s', strtotime("+30 days"));
?>
by
0 0
Thanks for sharing
0 like 0 dislike
by
$today = date('Y-m-d 00:00:00');
$tomorrow= date('Y-m-d H:i:s', strtotime($today . ' +1 day'));
by
0 0
great thnx...
by
0 0
How to add 'x' amount of hours to date?
by
0 0
Same way
date("Y-m-d H:i:s", strtotime('+2 hours')).
by
0 0
And for adding minutes too..use the below method:

$date = $row['time']; // from mysql_fetch_array
echo $date2 = date("Y-m-d H:i:s", strtotime($date." + 5 hours 30 Minutes"));

Related questions

0 like 0 dislike
1 answer 177 views
0 like 0 dislike
2 answers 136 views
0 like 0 dislike
2 answers 99 views
1 like 0 dislike
1 answer 3.4k views
0 like 0 dislike
1 answer 138 views
0 like 0 dislike
1 answer 75 views
1 like 0 dislike
1 answer 524 views
0 like 0 dislike
1 answer 232 views
0 like 0 dislike
1 answer 16k views
0 like 0 dislike
1 answer 78 views
...