Hello,
I am in Canada and I have a php form set up on my local server. I want to
set it up so that when I enter a test name and date of birth -- for
instance, 1/2/1980 (for January, 2, 1980) -- the result will show up on
another page as 1/2/80 and in my mysql database the result will be shown as
1980-01-02 (1980-January-02).
I used the following code, but it keeps returning the switching the result
on the results page to the day before the month (2/1/80), even though in the
mysql database it's correctly putting the month before the day (1980-01-02).
Is it doing this because it detects my locale as Canada and the standard
here is to put the day before the month?
$zendDate = new Zend_Date($theValue,"M/d/yyyy");
$theValue = "'" . $zendDate->toString("YYYY-MM-dd") . "'";
Thank you for any help
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/How-to-override-my-locale-re-zend-date-format-tp4660501.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]