Several methods support retrieving values related to a Zend_Date
instance.
Table 49. Date Output Methods
| Method | Explanation |
|---|---|
toString() |
Invoke directly or via the magic method
|
toArray() |
Returns an array representation of the selected date according to the conventions of the object's locale. The returned array is equivalent to PHP's getdate() function and includes:
|
toValue() |
Returns an integer representation of the selected date
Limitation of toValue()
This method calls |
| get() |
This method returns the |
now() |
This convenience function is equivalent to new
Zend_Date(). It returns the current date as a
|




