June 22, 2008 at 10:25 pm
Hi All,
I want to find the previous 25th month from current date.
Any suggestion or code please.....
Thanks in advance.....
June 22, 2008 at 10:35 pm
Use DATEADD function. For example:
select getdate(), dateadd(m, -25, getdate())
2008-06-23 10:03:11.3172006-05-23 10:03:11.317
June 22, 2008 at 10:46 pm
Thanks Suresh for you valuable reply..........:)
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy