Claim your Biolink Click Here
0 like 0 dislike
1.3k views
in Education & Reference by | 1.3k views

2 Answers

0 like 0 dislike
<?php
date('Y-m-d h:m:s', strtotime("+30 days"));
?>
by
0 0
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'));
by
0 0
great thnx...
0 0
How to add 'x' amount of hours to date?
0 0
Same way
date("Y-m-d H:i:s", strtotime('+2 hours')).
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
2 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Jun 27, 2019 in Education & Reference by Simmi (820 points) | 278 views
1 like 0 dislike
1 answer
0 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.6k points) | 1.1k 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

1,310 questions
1,471 answers
569 comments
4,809 users