def datetimeformat(value, format='%I:%M %p , %d-%m-%Y'):
    """
    A Jinja template filter to print date object in human
    readable date string
    Ex: datetime.datetime(2016, 3, 3, 0, 40, 40, 921159)
        ==> 12:40 AM , 03-03-2016
    """
    return value.strftime(format)