You are here

public function DatexObject::monthFirstDay in Datex 7.2

Same name and namespace in other branches
  1. 7 datex_api/datex_api_classes.inc \DatexObject::monthFirstDay()

Returns an object containing first day of month.

File

datex_api/datex_api.class.inc, line 375
Provides an API to work with dates.

Class

DatexObject
Base class for localized DateTime.

Code

public function monthFirstDay() {
  $date = clone $this;
  $date
    ->setDate(NULL, NULL, 1);
  return $date;
}