FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Get week number from date

 


devroom
I have searched for hours for a code but i couldnt find one. Does anybody knows or has a code which can calculate a code from a date
example

date: 30/11/2006 <- enter date
[get week] <-button
week: .... <-gives the weeknumber

Thx and grtz

Ps. for the moderators. I have also created a topic in the php-forum. Because there can be 2 ways.
muggle
I think there is no native function/method in JavaScript which can provide you this information, so you have to write it by your self.
I hope this two links will help:
http://forums.devarticles.com/javascript-development-22/get-week-or-day-of-year-12071.html
http://www.merlyn.demon.co.uk/weekcalc.htm
The second one especially has very detailed discussions related to date calculations.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.