Afternoon list,

is there an easier ( and more readable ) way than the following to retrieve an object for the start of the current month?

$currentDate = new Zend_Date();
$startOfMonth = new Zend_Date(
        "{$currentDate->get(Zend_Date::YEAR)}
        -{$currentDate->get(Zend_Date::MONTH)}-01"
        );

regards
Graham

Reply via email to