Dear list,
I have some problems with Zend_Date:  set( XX ,Zend_Date::WEEK)
I need the start- and endday of a week. I try this:

$date[0] = 7;
$date[1] = 2008;

$this->start->set($date[1],Zend_Date::YEAR);
$this->start->set($date[0],Zend_Date::WEEK);
$this->start->set('00:00:00',Zend_Date::TIMES);
$this->end->set($date[1],Zend_Date::YEAR);
$this->end->set($date[0],Zend_Date::WEEK);
$this->end->set('23:59:59',Zend_Date::TIMES);

In this case I get the rigtht week fom monday to sunday.
If I try 

$date[0] = 7;
$date[1] = 2006;

I only get 7 days if I add $this->end->add(7,Zend_Date::DAY);
But I get a week from saturday to friday.
How can I always get monday to sunday?
Greetings


-- 
View this message in context: 
http://www.nabble.com/Zend_Date%3A-set%28-XX-%2CZend_Date%3A%3AWEEK%29-tp15409379s16154p15409379.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to