public function getFirstAndLastDayOfCurrentMonth()
  {
    $Date = new Carbon('first day of this month');
    $Date2 = new Carbon('last day of this month');

    return array('userFormattedFrom' => $Date->format($this->Lang->get('form.phpShortDateFormat')), 'userFormattedTo' => $Date2->format($this->Lang->get('form.phpShortDateFormat')), 'databaseFormattedFrom' => $Date->format('Y-m-d'), 'databaseFormattedTo' => $Date2->format('Y-m-d'));
  }
public function getFirstAndLastDayOfCurrentMonth()
  {
    $Date = new Carbon('first day of this month');
    $Date2 = new Carbon('last day of this month');

    return array('userFormattedFrom' => $Date->format($this->Lang->get('form.phpShortDateFormat')), 'userFormattedTo' => $Date2->format($this->Lang->get('form.phpShortDateFormat')), 'databaseFormattedFrom' => $Date->format('Y-m-d'), 'databaseFormattedTo' => $Date2->format('Y-m-d'));
  }
public function getFirstAndLastDayOfCurrentMonth ( ) { $ Date = new Carbon ( 'first day of this month' ) ; $ Date2 = new Carbon ( 'last day of this month' ) ; return array ( 'userFormattedFrom' => $ Date -> format ( $ this -> Lang -> get ( 'form.phpShortDateFormat' ) ) , 'userFormattedTo' => $ Date2 -> format ( $ this -> Lang -> get ( 'form.phpShortDateFormat' ) ) , 'databaseFormattedFrom' => $ Date -> format ( 'Y-m-d' ) , 'databaseFormattedTo' => $ Date2 -> format ( 'Y-m-d' ) ) ; }
Get first day of current month

@return array
An array as follows: array( 'userFormattedFrom' => $date0, 'userFormattedTo' => $date1, 'databaseFormattedFrom' => $date2, 'databaseFormattedTo' => $date3)
Get first day of current month