Joshua,

        How about:

<!--- Current Day --->
<CFSET TestDate="03/07/01">

<!--- Calculate number of days until end of week based on which day of the
week it is --->
<CFSET NumOfDays=7-DayOfWeek(TestDate)>

<!--- Add number of days until end of week and the current date --->
<CFSET EndOfWeek=NumOfDays + TestDate>


<CFOUTPUT>#DateFormat(EndOfWeek,"mm/dd/yyyy")#</CFOUTPUT>


Todd Wall



-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 6:49 PM
To: CF-Talk
Subject: week ending


I want to setup a page that displays the week ending date based on the
current week.  So that if today was 3/07/2001 it would display 3/10/2001 or
if it was the 6th it would still say the 10th but then next week it will
start with the next week ending date.  Can someone help.

Joshua Tipton
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to