Goes back to the standard that Sunday is the start of a week.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

 

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Wednesday, 6 June 2007 4:41 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get Working Week

 

Got it sorted dur!

 

<!--- Sunday = 1, Satuarday = 7 --->

<cfset today = createDate(2007, 6, 16) />

<cfset dow = dayOfWeek(today) />

<cfif dow eq 7>

     <cfset friday = dateAdd("d", 6, today) />

<cfelse>

     <cfset friday = dateAdd("d", (dow - 6) * -1, today) />

</cfif>

<cfoutput>#friday#</cfoutput>

 

Not sure why Coldfusion starts the week on a Sunday, is this some kind of
standard, not in the real world I would think.

 

Regards

Dale Fraser

 

http://dalefraser.blogspot.com

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Wednesday, 6 June 2007 4:33 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get Working Week

 

Problem is my Week ends on Friday.

 

Not Satuarday.

 

Regards

Dale Fraser

 

http://dalefraser.blogspot.com

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Wednesday, 6 June 2007 4:17 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get Working Week

 

Which part are you not getting to work?

 

This is a very common JS Calendar problem that has been solved that many
times...

 

A bit more info on why you think it is not working would be good. Or even
code example maybe.



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

 

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Wednesday, 6 June 2007 4:00 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Get Working Week

 

I need to get working week.

 

Which for me is Sat - Fri.

 

I can't get it to work in all situations and am missing something really
obviousl.

 

Have a look here, but read my comments, doesn't work.

 

http://ray.camdenfamily.com/index.cfm/2007/6/5/Ask-a-Jedi-What-day-is-Wednes
day

 

Regards

Dale Fraser

 

http://dalefraser.blogspot.com

 

 

 

 

 

 

 



 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to