Details
Description
Zend_Date to array or display the Weekday, always consider the Sunday is '0',
but setweekday() consider Sunday is '7'.
would that can be the same rule ?
Zend_Date to array or display the Weekday, always consider the Sunday is '0',
but setweekday() consider Sunday is '7'.
would that can be the same rule ?
I dont really understand your problem...
setWeekday uses WEEKDAY_8601... the ISO format... ISO defines 1 as Montag and 7 as Sunday.
All setxxx functions work with ISO format.
getWeekday returns a DATE OBJECT and no string.
The ordinary toArray function returns the date as array where the weekday is treated as WEEKDAY_DIGIT which is like PHP's 'w' token.
Btw:
When you give an array as input the weekday is used as WEEKDAY_DIGIT like with toArray.