PDA

View Full Version : calendar week error



WII
30-Jan-2014, 12:20 PM
Hello,

In the Weborder example,
the datepicker show's week 53 for the dates: 30/12/2013 to 05/01/2014.

this must be week 2014/01 but not 2013/53.

we have found the same error in vdf 17.0 / 17.1

P.S.
in Excel we found the same error in the week calculation,
+ an error with the julian date calculation (from 01/01/1900) (+1 from versus VDF)


the Outlook calendar is ok... strange.

Is there another calculation in USA versus Europe ?

Larry R Pint
30-Jan-2014, 04:22 PM
Setting FirstWeekOfYearDays to 6 or 7 would cause this.

Harm Wibier
31-Jan-2014, 03:33 AM
Hi WII,

You are right, the week nr is a custom calculation as JavaScript doesn't provide a default API for that. I've looked it up and it doesn't take the ISO standard into account where it is actually the Thursday in the week that determines the week number. I'll put in a more accurate implementation for the next build of 18.0.

Regards,