Logo Search packages:      
Sourcecode: zendframework version File versions  Download package

Zend_Date::setDate ( date,
format = null,
locale = null 

Sets a new date for the date object. Format defines how to parse the date string. Also a complete date with time can be given, but only the date is used for setting. For example: MMMM.yy HH:mm-> May.07 22:11 => 01.May.07 00:00 Returned is the new date object and the existing time is left as it was before

string | integer | array | Zend_Date$dateDate to set
string$formatOPTIONAL Date format for parsing
string | Zend_Locale$localeOPTIONAL Locale for parsing input
integer|Zend_Date new date

Definition at line 2960 of file Date.php.

References _date().

        return $this->_date('set', $date, $format, $locale);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index