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?
-- 
View this message in context: 
http://n4.nabble.com/Problem-in-getting-week-number-of-sundays-in-zend-tp1680149p1680149.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to