If you are using MySQL you can do it like this:
SELECT '2008-12-31 23:59:59' + INTERVAL 30 MINUTE;
For a pure PHP solution use strtotime
strtotime('+ 30 minute',$yourdate);
More Related Contents:
- PHP DateTime supported formats
- timestamp within a form [closed]
- Php date() Date and time is stuck [closed]
- PHP 01/01/1970 Issues with Date Fields
- Convert from MySQL datetime to another format with PHP
- How to store repeating dates keeping in mind Daylight Savings Time
- MySQL datetime fields and daylight savings time — how do I reference the “extra” hour?
- Object of class DateTime could not be converted to string
- Simplest way to increment a date in PHP?
- How to store NULL values in datetime fields in MySQL?
- How to separate DATE and TIME from DATETIME in MySQL?
- PHP, MySQL and Time Zones
- Set timezone in PHP and MySQL
- PHP, Get tomorrows date from date
- php strtotime “last monday” if today is monday?
- How to convert ISO8601 to Date format in php
- PHP: strtotime is returning false for a future date?
- Date in a URL dd/mm/yyyy
- mysql – INSERT date range into date columns IF dates don’t overlap with existing ones
- Using MySQL’s TIMESTAMP vs storing timestamps directly
- adding 1 day to a DATETIME format value
- Getting first weekday in a month with strtotime
- Determine If Business Is Open/Closed Based On Business Hours
- MySQL – ignore insert error: duplicate entry
- How to find day of week in php in a specific timezone
- “slash before every quote” problem [duplicate]
- How to store the data in unicode in hindi language
- PDO + MySQL and broken UTF-8 encoding
- Mysql password expired. Can’t connect
- mysql_connect VS mysql_pconnect [closed]