You are here

public function Carbon::toFormattedDateString in Persian Date for Drupal 8 8.4

Format the instance as a readable date

Return value

string

File

src/Library/Carbon/Carbon.php, line 1250

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function toFormattedDateString() {
  return $this
    ->format('M j, Y');
}