 <p>You can try using datetime and handle the exceptions to decide valid/invalid date : Example : <a href="http://codepad.org/XRSYeIJJ">http://codepad.org/XRSYeIJJ</a></p> <pre><code>import datetime correctDate = None try: newDate = datetime.datetime(2008,11,42) correctDate = True except ValueError: correctDate = False print(str(correctDate)) </code></pre>