What about the following:
$current = new Zend_Date();
$begin = $current->setDay(1);
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Graham Anderson" <[EMAIL PROTECTED]>
To: <fw-general@lists.zend.com>
Sent: Friday, September 14, 2007 3:11 PM
Subject: [fw-general] getting start of month with Zend_Date
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