zend-date Questions

6

Solved

I want to input a timestamp in below format to the database. yyyy-mm-dd hh:mm:ss How can I get in above format? When I use $date = new Zend_Date(); it returns month dd, yyyy hh:mm:ss PM I ...
Mccarter asked 1/6, 2011 at 13:18

6

Solved

I have the below line of codes $day1 = new Zend_Date('2010-03-01', 'YYYY-mm-dd'); $day2 = new Zend_Date('2010-03-05', 'YYYY-mm-dd'); $dateDiff = $day2->getDate()->get(Zend_Date::TIMESTAMP) ...
Garrido asked 25/3, 2010 at 7:57

1

Solved

I'd like to check if to Zend_Date datetimes are on the same day. How can I do that? $date1 = new Zend_Date('2011-11-14 10:45:00'); $date2 = new Zend_Date('2011-11-14 19:15:00');
Parimutuel asked 14/11, 2011 at 11:8

3

Solved

I want to save a datetime in the database which was created with the doctrine schema tool. In my form I set a date and time and i want to save it as a datetime in the database. So i tried this: $...
Grazynagreabe asked 18/9, 2011 at 17:25

2

I have a very strange problem, Zend_Date is converting my timestamp to a year earlier. In my action: // Timestamp $intTime = 1293922800; // Zend_Date object $objZendDate = new Zend_Date($intTime...
Daughterinlaw asked 5/8, 2010 at 9:37

1

Solved

I'm using Zend_Date to set and get the year, but it is not being set as the correct year. I set the year as 2010, and it returns the year as 2009. What am I doing wrong? Is there a bug in Zend_Date...
Kickshaw asked 30/12, 2009 at 2:9

1

Solved

I want to get the date of the closest Monday in the future (i.e. not in the past). So if today is Tuesday (Dec 1, 2009) I want to get the date of Monday (Dec 7, 2009). How can I do this with Zend...
Impediment asked 18/12, 2009 at 23:51
1

© 2022 - 2024 — McMap. All rights reserved.