Jump to content

adding a day to an SQL date field


gerkintrigg

Recommended Posts

I've tried using the following code to add a day to the current date value:

 

SELECT (
start_date +1
), start_date
FROM `booking`
WHERE 1
LIMIT 0 , 30

 

but it's just returning the numbers with a 1 added to it... so "dates" like 20070332

 

Can anyone suggest how to change this to a real date?

Link to comment
https://forums.phpfreaks.com/topic/45326-adding-a-day-to-an-sql-date-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.