1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

Standard Week Number

Monday May 11, 2009
The International Standards Organisation have a rather unusual definition for working out week numbers.

Not only do the week numbers that the ISO has defined assume the week runs from Monday to Sunday when the days of the week are actually named from Saturday to Friday (and JavaScript numbers them from Sunday to Saturday) but where there are fewer than four days from the current year in their week then those days are adssumed to belong to a week in a differet year. This makes calculating the ISO standard week number slightly more complicated unless you add appropriate date methods to your date objects.

Standard Week Number
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.