Re: [fw-general] [Zend_Date] Sunday weekday 0 / 7

2010-08-22 Thread Ben Scholzen
Am 22.08.2010 01:31, schrieb debussy007: > > Hi, > > I have stored a schedule in database, which contains weekdays and time > slots. > > I want to create a date and set the weekday : > > $zfDate = new Zend_Date(); > $zfDate->setWeekday($weekday); Just do: $zfDate->setWeekday($weekday % 7); >

[fw-general] Re: [Zend_Date] Sunday weekday 0 / 7

2010-08-22 Thread debussy007
No it's worse, should be someething like : if ($weekday == 0) $weekday = 7; -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-Date-Sunday-weekday-0-7-tp2333881p2334057.html Sent from the Zend Framework mailing list archive at Nabble.com.