You are here

public function FrxControls::iso_date in Forena Reports 7

Same name and namespace in other branches
  1. 6.2 plugins/FrxControls.inc \FrxControls::iso_date()
  2. 6 plugins/FrxControls.inc \FrxControls::iso_date()
  3. 7.2 plugins/FrxControls.inc \FrxControls::iso_date()
  4. 7.3 plugins/FrxControls.inc \FrxControls::iso_date()
  5. 7.4 plugins/FrxControls.inc \FrxControls::iso_date()

File

plugins/FrxControls.inc, line 69
contains various methods for extending report formating, layout, transformation and design.

Class

FrxControls
@file contains various methods for extending report formating, layout, transformation and design.

Code

public function iso_date($value, $format_str) {
  if ($value) {
    $date = strtotime($value);
  }
  return $this
    ->drupal_date_format($date, $format_str);
}