RE: Check for next year
Thanks all! -Original Message- From: Ben Rogers [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 12:00 PM To: CF-Talk Subject: RE: Check for next year #month(theDate)# -- #year(theDate)# You can wrap month() in monthAsString() if you want to display the name of the month rather than the month as a number. Ben Rogers http://www.c4.net v.508.240.0051 f.508.240.0057 > -Original Message- > From: Robert Orlini [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 11:53 AM > To: CF-Talk > Subject: Check for next year > > I have a popup that will display one month in advance. > > The issue I have is that users can view January, but the display still > reads "January 2004". I have the month and year formatted below. > > How can I check and/or display the year 2005? The dateformat below does > not take that in consideration. > > Thanks! > > Report for month of: #month# -- #dateformat(now(), "")# > > Robert O. > HWW > > > ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189006 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Check for next year
Use DateAdd() to add one month to Now(), and then use that yo display month and year. --- Ben -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 11:53 AM To: CF-Talk Subject: Check for next year I have a popup that will display one month in advance. The issue I have is that users can view January, but the display still reads "January 2004". I have the month and year formatted below. How can I check and/or display the year 2005? The dateformat below does not take that in consideration. Thanks! Report for month of: #month# -- #dateformat(now(), "")# Robert O. HWW ~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189004 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Check for next year
#month(theDate)# -- #year(theDate)# You can wrap month() in monthAsString() if you want to display the name of the month rather than the month as a number. Ben Rogers http://www.c4.net v.508.240.0051 f.508.240.0057 > -Original Message- > From: Robert Orlini [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 11:53 AM > To: CF-Talk > Subject: Check for next year > > I have a popup that will display one month in advance. > > The issue I have is that users can view January, but the display still > reads "January 2004". I have the month and year formatted below. > > How can I check and/or display the year 2005? The dateformat below does > not take that in consideration. > > Thanks! > > Report for month of: #month# -- #dateformat(now(), "")# > > Robert O. > HWW > > > ~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189003 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Check for next year
You'll need to use either CreateDate() (build your own date using whatever criteria you want) or DateAdd() (add to the current date) Basically by using Now() you are of course stuck with the current year...so add 1 year to Now() and yer good to go Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com/tiny.cfm/54 ~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189002 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Check for next year
> I have a popup that will display one month in advance. > > The issue I have is that users can view January, but the display still reads > "January 2004". I have the month and year formatted below. > > How can I check and/or display the year 2005? The dateformat below does not > take that in consideration. > > Thanks! > > Report for month of: #month# -- #dateformat(now(), "")# Why not do #DateFormat(DateAdd("m", 1, Now()). " -- ")# ? Hatton ~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189001 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Check for next year
var viewdate = dateAdd('m', 1, now()); Report for month of: #month(viewdate)# -- #year(viewdate)# On Thu, 30 Dec 2004 11:53:16 -0500, Robert Orlini <[EMAIL PROTECTED]> wrote: > I have a popup that will display one month in advance. > > The issue I have is that users can view January, but the display still reads > "January 2004". I have the month and year formatted below. > > How can I check and/or display the year 2005? The dateformat below does not > take that in consideration. > > Thanks! > > Report for month of: #month# -- #dateformat(now(), "")# > > Robert O. > HWW > > ~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189000 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54