travisbrown
Technical User
- Dec 31, 2001
- 1,016
Why would this be returning year 5157?
SELECT DateAdd('m',Date(),1)
07/31/5157
But this
SELECT DateAdd('d',Date(),1)
returns
01/10/2007?
I need to return the year of the date in one month, so I want to do something like this:
DATEPART('yyyy',DATEADD('m',DATE(),1))
SELECT DateAdd('m',Date(),1)
07/31/5157
But this
SELECT DateAdd('d',Date(),1)
returns
01/10/2007?
I need to return the year of the date in one month, so I want to do something like this:
DATEPART('yyyy',DATEADD('m',DATE(),1))