Skip to main content

Search and Top Navigation

#4131 closed feature (fixed)

Opened February 12, 2009 11:34AM UTC

Closed July 29, 2009 08:34AM UTC

Last modified October 03, 2012 05:16PM UTC

Could weeknumbers added to the Datepicker

Reported by: ZeroMD Owned by:
Priority: trivial Milestone: 1.8a1
Component: ui.datepicker Version: 1.6rc6
Keywords: Week numbers Cc:
Blocked by: Blocking:
Description

The datepicker is a great component, but I'm missing week numbers

Attachments (1)
Change History (8)

Changed February 19, 2009 10:41AM UTC by kbwood comment:1

Week numbers are still available in the original datepicker - http://keith-wood.name/datepick.html.

Changed March 21, 2009 12:30AM UTC by hub comment:2

Here's that feature.

Use it like this:

$("#datepicker").datepicker({showWeekNumbers: true, firstDay:1});

ISO week numbers starts on mondays, so this feature should not be used with firstDay=0.

Also apply the week number fix: http://dev.jqueryui.com/ticket/4285

Changed May 07, 2009 11:41AM UTC by jzaefferer comment:3

milestone: TBD1.next

Changed June 11, 2009 09:58AM UTC by catallist comment:4

I've done this and it's great. One issue is when you get to January 2010 it says week one is week 53 of the previous year.

Can this be fixed at all?

Changed July 21, 2009 04:36AM UTC by kbwood comment:5

This is correct as it stands. The ISO 8601 standard defines the first week of the year as "the week with the year's first Thursday in it". Hence week 1 of 2010 starts on Jan 4 and contains Thursday Jan 7. Jan 1 to 3 are relegated to the last week of the previous year.

Changed July 22, 2009 10:04AM UTC by bdaniel7 comment:6

hi, when is this patch gonna be included in the datapicker-stable?

Changed July 29, 2009 08:34AM UTC by kbwood comment:7

resolution: → fixed
status: newclosed

Fixed in r3004, including localisation of the column header. Added a demonstration of the datepicker showing week of the year.

Changed October 03, 2012 05:16PM UTC by scottgonzalez comment:8

milestone: 1.next1.8a1