def strftime(date, fmt):
    """
    Apply strftime to `date` object with `fmt` prameter.
    Returns '' if either is non truthy
    """
    try:
        if not date or not fmt:
            return ''
        return date.strftime(fmt)
    except:
        return ''