Hi, I suppose the "problem" is the week is calculated with PHP's date 'W' format. Which uses the ISO-8601 standard with Monday as the first day of the week.
http://php.net/manual/en/function.date.php El mar, 23-03-2010 a las 23:42 -0800, linodavis escribió: > I want to get the week number of a particular date , using Zend_Date > > My local is setted as English(IN) [en_IN], in Opera browser > > I am using the following code > > $date = new Zend_Date('22 Mar, 2010', null, > Zend_Registry::get('Zend_Locale')); > echo $date->get(Zend_Date::WEEK); //output 12, correct > > But if we give a sunday , it will not work correctly > > for example > > $date = new Zend_Date('21 Mar, 2010', null, > Zend_Registry::get('Zend_Locale')); > echo $date->get(Zend_Date::WEEK); //output 11, not correct > > it should output 12 > > What is wrong with this? -- Alayn Gortazar Irontec, Internet y Sistemas sobre GNU/LinuX - http://www.irontec.com +34 94.404.81.82
