You are here

public function DatexObject::monthLastDay in Datex 7.2

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

Returns an object containing last day of month.

File

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

Class

DatexObject
Base class for localized DateTime.

Code

public function monthLastDay() {
  $date = clone $this;
  $date
    ->setDate(NULL, NULL, $date
    ->format('t'));
  return $date;
}