def date_vs_num(nsw):
    """Return '1' if nsw looks like a date with a '.' in."""
    if '.' not in nsw:
        return False
    elif nsw.count('.') > 1:
        return 1
    else:
        dot = nsw.find('.')
        first = nsw[:dot]
        second = nsw[dot:]
        if not (first.isdigit() and second.isdigit()):
            return False
        elif not (first.isdigit() and second.isdigit()):
            return False
        elif len(first) > 1 and first[0] == '0':
            return 1
        elif second[-1] == '0':
            return 1
        else:
            return 0
