0 like 0 dislike
851 views
asked Aug 6, 2013 in Education & Reference by Krishna | 851 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
0 like 0 dislike
1 answer
asked Aug 1, 2017 in Education & Reference by Krish (880 points) | 42 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 18, 2014 in Education & Reference by Yogi (180 points) | 47 views
1 like 0 dislike
1 answer
asked Apr 15, 2014 in Education & Reference by Yogi (180 points) | 66 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,167 questions
1,307 answers
276 comments
1,594 users