You are here

public function DateArgumentWrapper::format in Calendar 8

File

src/DateArgumentWrapper.php, line 138

Class

DateArgumentWrapper
The DateArgumentWrapper class.

Namespace

Drupal\calendar

Code

public function format($format) {
  if ($date = $this
    ->createDateTime()) {
    return $date
      ->format($format);
  }
  return NULL;
}