validation - In python, how to check if a date is valid? - Stack Overflow

PHOTO EMBED

Tue Jun 01 2021 02:45:24 GMT+0000 (Coordinated Universal Time)

Saved by @admariner #python

<form action='/event' method='post'>
Year ("yyyy"):  <input type='text' name='year' />
Month ("mm"):  <input type='text' name='month' />
Day ("dd"):  <input type='text' name='day' />
Hour ("hh"):  <input type='text' name='hour' />
Description:  <input type='text' name='info' />
             <input type='submit' name='submit' value='Submit'/>
</form>
content_copyCOPY

https://stackoverflow.com/questions/9987818/in-python-how-to-check-if-a-date-is-valid