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.
date('Y-m-d H:i:s',strtotime('+15 minutes'))
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'))
date('Y-m-d H:i:s', strtotime('+15 minutes', $timestamp))... assuming the time is stored in the database as an integer. If it's in the format YYYY-MM-DD HH:mm:ss then use @stillstanding's code.