0 like 0 dislike
853 views
asked Aug 6, 2013 in Education & Reference by Krishna | 853 views
    

2 Answers

0 like 0 dislike
<?php
date('Y-m-d h:m:s', strtotime("+30 days"));
?>
answered Aug 6, 2013 by Pawan
Thanks for sharing
0 like 0 dislike
$today = date('Y-m-d 00:00:00');
$tomorrow= date('Y-m-d H:i:s', strtotime($today . ' +1 day'));
answered Apr 25, 2014 by Rohan
great thnx...
How to add 'x' amount of hours to date?
Same way
date("Y-m-d H:i:s", strtotime('+2 hours')).
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
0 like 0 dislike
2 answers
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Jan 4, 2018 in Education & Reference by Sam (1,350 points) | 164 views
0 like 0 dislike
1 answer
asked Aug 1, 2017 in Education & Reference by Krish (840 points) | 45 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 18, 2014 in Education & Reference by Yogi (180 points) | 48 views
1 like 0 dislike
1 answer
asked Apr 15, 2014 in Education & Reference by Yogi (180 points) | 69 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,177 questions
1,318 answers
276 comments
1,617 users