Hi all!

I want to know what is the date of the first day of the week. I did this:
$currDate = new Zend_Date();
    $currDate->sub($currDate->get(Zend_Date::WEEKDAY_DIGIT)- 1,Zend_Date::DAY);
    var_dump($currDate->get('Y-m-d'));

But, the result is not so good. The year and the day is good. The
month is replaced to minutes.
2010-38-12; actual time here: 13:38

I watched in the documentation and it should be good.
(http://hu.php.net/manual/en/function.date.php)

If I get the date through __toString() good, but I want to avoid
formatting the string.

Did I somethign wrong?

Thanks for the help!

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell

Reply via email to