def date_format(date=None, format='%Y-%m-%d'):
 return date_cast(date).strftime(format)

def date_format ( date = None , format = '%Y-%m-%d' ) : return date_cast ( date ) . strftime ( format )
format dates parameters format: date format using standard strftime format .