Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a table which stores a date value. From this value I want to do a select statement which adds 28 days to the value in my table.
I understand the getdate() function but I'm unable get a select which will do this.
I guess in simple terms it will be select date from table having added 28 days????
I'm using MS SQL 2005.
Big Thanks
Tony

Use the dateadd function
Select DataAdd( d, 28, columnname) from tableName
GetDate() gives you the current date.

hello i have a table field DOB i want to enter date in DOB field not more than 18 years reference date is today

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |