import re


def DateStart(s):
    """
    To check the validity of the date pattern in the text file

    Parameters:
    s (string): The string for which we perform a regex check

    Returns:
    true, false (boolean) : Returns true f the format of the input string is valid and false otherwise

    """
    patterns = ['([0-2][0-9]|(3)[0-1])(\/)(((0)[0-9])|((1)[0-2]))(\/)(\d{2}|\d{4}), ([0-9][0-9]|[0-9]):([0-9][0-9])',
                '([0-2][0-9]|(3)[0-1])(\/)(((0)[0-9])|((1)[0-2]))(\/)(\d{2}|\d{4}), ([0-9][0-9]|[0-9]):([0-9][0-9])']
    pattern = '^' + '|'.join(patterns)
    result = re.match(pattern, s)
    if result:
        return True
    return False