----- Original Message -----
Sent: Monday, March 08, 2004 7:32
AM
Subject: RE: [KCFusion] brain
teaser
Try
this, nice and simple:
<cfset today = now()>
<cfset monday =
DateAdd("d",(2-DayOfWeek(today)),today)>
<cfset friday =
DateAdd("d","4",monday)>
<cfoutput>
#DateFormat(monday,'mm/dd')#-#DateFormat(friday,'mm/dd')#<br>
</cfoutput>
Eddie McReynolds
Architecture Software Analyst
Clinical Reference Laboratory
Voice: (913) 693-2512
(800) 445-6917 Ext.: 2512
Fax: (913) 492-4316
Email: [EMAIL PROTECTED]
OUR VALUES &
CULTURE
* Service to
Humanity * Flexibility * Commitment * Compassion * Teamwork *
* Perseverance *
Quality * Integrity * Client Focus *
The crayon pusher and I were working on this
(actually I was only devoting half my brain to it) he had to run pick up his
kid but I was wondering what it took to have the Monday though Friday date
spit out dynamically so we would not have to update this schedule every
week. look something like
3/8-3/12
3/15-3/19
and so on.
We were messing with the now function but could
not come up with anything neat and clean.
Adaryl Wakefield
Realtor
DISCLAIMER: The information in this message is
confidential and may be legally privileged. It is intended solely for the
addressee. Access to this message by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, or distribution of the
message, or any action or omission taken by you in reliance on it, is
prohibited and may be unlawful. Please immediately contact the sender if you
have received this message in error. Thank
you.