Reputation: 437
I am using date function to find current time as date('Y-m-d H:i:s');
I want to find 15 mint from now using PHP using date function
Please help me.
Upvotes: 1
Views: 842
Reputation: 35318
strtotime() is your friend here. It will parse all kinds of input and give you a time using plain English.
echo date('Y-m-d H:i:s', strtotime('+15 minutes'))
Upvotes: 2