public function Carbon::startOfMonth in Persian Date for Drupal 8 8.4
Resets the date to the first day of the month and the time to 00:00:00
Return value
static
File
- src/
Library/ Carbon/ Carbon.php, line 2903
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function startOfMonth() {
return $this
->setDateTime($this->year, $this->month, 1, 0, 0, 0);
}