I am having a small problem with the DateAdd function.
i need to add 2 month to a particular date but i am getting the date backwors
my code
OUT PUTCode:<cfset date1 = #LSDateFormat(Now(), "mmmm dd, yyyy")# > <cfset expdate = DateAdd("m", 2, date1)> <cfoutput> #date1# <br /> #expdate# <br /> </cfoutput>
June 08, 2009
{ts '2009-08-08 00:00:00'}
So line 1 is right with the proper date format but line # 2 has the year first and thn the month and then the day.
i would like it formated like the original date just 2 month in the future
Thanks


Reply With Quote
Bookmarks