Try this then...
<cfset myDate = "1/" & Month(dateAdd("m",-1,now())) & "/" & Year(Now())>
<cfoutput>#myDate#</cfoutput>
See support for the Date functions on the livedocs at
http://livedocs.macromedia.com for more info.
Laters,
J
On 5/19/05, Torrent Girl <[EMAIL PROTECTED]> wrote:
>
> I am not getting it.
>
> I need an actual date.
>
> I need to calculate and output the first and last date of the previous
> month for any given month. In date format, not number of days.
>
>
> This - #DaysInMonth(now())# returns the # of days (31)
>
> and this #01/#Month(now())#/#Year(Now())# gives me an error.
>
--
---------------
-------------------------------------
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:978
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54