public function FrxDateFormatter::format in Forena Reports 6
Same name and namespace in other branches
- 6.2 plugins/FrxDateFormatter.inc \FrxDateFormatter::format()
File
- plugins/
FrxDateFormatter.inc, line 8 - Handles common date formats.
Class
- FrxDateFormatter
- @file Handles common date formats.
Code
public function format($value, $format_string) {
if (!$format_string) {
$format_string = 'F j,Y';
}
if ($value) {
$date = format_date(strtotime($value), 'custom', $format_string);
}
if ($date) {
$value = $date;
}
}