Checking for valid date input and convert appropriately

Lele Gaifax lele at metapensiero.it
Fri Feb 22 08:35:31 EST 2013


Ferrous Cranus <nikos.gr33k at gmail.com> writes:

> Let me ask it like this:
> How can i avoid using try: except: for checkign the date but instead check it with an if statement:

Let me answer this way: you can't, without resorting to the simple
helper functions I wrote in my previous message. 

Why do you dislike that solution?

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list