Thank you all for the information about YYYY-yyyy difference.

I found that the problem is related to getDate function.
When I removed this function from the chain, the date diff became the
same for both 2010 and 2011.
Now, I removed this function and it is okay.

Hope I am not missing anything.

scs

On Mon, Oct 18, 2010 at 6:29 PM, Hector Virgen <[email protected]> wrote:
> I've seen this question come up from time to time even though there's a
> "note" about this in the documentation.
>
> http://framework.zend.com/manual/en/zend.date.constants.html#zend.date.constants.selfdefinedformats
>
> Maybe the documentation should make that note a bit more pronounced, maybe
> with a bright background color or larger font. Or maybe it could be marked
> "important" instead of "note".
>
> --
> *Hector Virgen*
> Sr. Web Developer
> Walt Disney Parks and Resorts Online
> http://www.virgentech.com
>
>
>
> On Sun, Oct 17, 2010 at 8:16 PM, David Muir
> <[email protected]<davidkmuir%[email protected]>
>> wrote:
>
>>
>> YYYY is the ISO year, which is different from yyyy which is the normal
>> calendar year.
>> http://en.wikipedia.org/wiki/ISO_year#Relation_with_the_Gregorian_calendar
>>
>> You should use either of the following:
>> $date = new Zend_Date($datecolumn, Zend_Date::ISO_8601);
>> $date = new Zend_Date($datecolumn, 'yyyy-MM-dd');
>>
>> Cheers,
>> David
>> --
>> View this message in context:
>> http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions-Differences-tp2996040p2999618.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>

Reply via email to