So, how  can we get the week number of a particular day?
for '21-03-2010'  it is 12
for '22-03-2010'  it is 12
for  '2003-2010'  it is 11 like that

Iam using  the code

$date = new Zend_Date('22-03-2010', null,
Zend_Registry::get('Zend_Locale'));
echo $date->get(Zend_Date::WEEK); //output 12, correct

$date = new Zend_Date('21-03-2010', null,
Zend_Registry::get('Zend_Locale'));
echo $date->get(Zend_Date::WEEK); //output 11 incorrect

it should come 12 .
 how should i modify the code?
-- 
View this message in context: 
http://n4.nabble.com/Problem-in-getting-week-number-of-sundays-in-zend-tp1680149p1680345.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to