_fdate

Format a date

Parameters
string $date = ''

A date to be formatted

#
string $format = ''

The date format; The config variable will be used if it is not passed

#
Returns
string

The formatted date