Use the real year instead of the ISO-YEAR.
$date->toString('YYYY-MM-dd'); => $today = $date->toString('yyyy-MM-dd');
Y = ISO-Year beginns with the week of the year where the Thursday is minimum
the first.
This is a calculated year and should only be used for calendar
representations.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Jijo" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, December 31, 2007 6:08 AM
Subject: [fw-general] Problems with Date functionality
Hi,
I am using zend functionality of date and getting some problems while
displaying todays date as it is showing 31-12-2008 instead of
31-12-2007.My
system date is also 31-12-2007.The code i have written is
$date = new Zend_Date();
$today = $date->toString('YYYY-MM-dd');
Can anybody help me with this.It was working fine till yesterday.
Thank you.
--
View this message in context:
http://www.nabble.com/Problems-with-Date-functionality-tp14554392s16154p14554392.html
Sent from the Zend Framework mailing list archive at Nabble.com.