You are here

public function Formatter::iso_date in Forena Reports 8

Format an ISO date as a date.

File

src/FrxPlugin/FieldFormatter/Formatter.php, line 138
contains various methods for extending report formating, layout, transformation and design.

Class

Formatter
Formatter for common drupal fields.

Namespace

Drupal\forena\FrxPlugin\FieldFormatter

Code

public function iso_date($value, $format_string) {
  $date = $value ? strtotime($value) : '';
  return $this
    ->drupal_date_format($date, $format_string);
}