import time


def udate(timestamp):
    """Converts a timestamp in a formated date string"""
    try:
        ts = float(timestamp)
    except ValueError:
        return None

    return time.strftime("%Y/%m/%d", time.gmtime(ts))