public function Carbon::toDateString in Persian Date for Drupal 8 8.4
Format the instance as date
Return value
string
4 calls to Carbon::toDateString()
- Carbon::isSameDay in src/
Library/ Carbon/ Carbon.php - Checks if the passed in date is the same day as the instance current day.
- Carbon::isToday in src/
Library/ Carbon/ Carbon.php - Determines if the instance is today
- Carbon::isTomorrow in src/
Library/ Carbon/ Carbon.php - Determines if the instance is tomorrow
- Carbon::isYesterday in src/
Library/ Carbon/ Carbon.php - Determines if the instance is yesterday
File
- src/
Library/ Carbon/ Carbon.php, line 1240
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function toDateString() {
return $this
->format('Y-m-d');
}