def iso_date(value): """ @todo convert to python native """ df = DateFormat(value) return df.format('c')
def date_format(value, format_string): "Helper function for PHP style date formatting" df = DateFormat(value) return df.format(format_string)
def short_date(value): df = DateFormat(value) return df.format('jS M Y')