Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

week number wierdness

Status
Not open for further replies.

gtbikerider

Technical User
May 22, 2001
81
0
0
GB
I'm using <cfset weeknumber = #week(NOW())#> to get the week number. It tells me that it is week 41. However this site tells me that it is actually week 40. Why the discrepancy?

(My system date is set to 6/10/2006 (uk format))



--
John
 
I did:
Code:
<cfset weeknumber = #week(NOW())#>
<cfoutput>#weeknumber#</cfoutput>

And, I get 40 as my result.

Show us some code so we can help.

____________________________________
Just Imagine.
 
The code is...

<cfset weeknumber = #week(NOW())#>
<cfoutput>#weeknumber#</cfoutput>

...nothing else. I found that on my live server I also get week 40 - its just something about my local machine that gives week 41. I guess I can live with it now I know my live machine is OK, but I'd be interested to know what the issue is.

--
John
 
since the now() function gets the current date and time of the computer running the CF server, you may check your local date to make sure it shows Oct 09, 2006 for today...

hope it helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top