i made a liitle typo at the ned, i meant this:
if ( eval( datetime.strptime(date, '%d %m %Y') ) ):
date = datetime.strptime(date, '%d %m %Y').strftime('%Y-%m-%d')
else:
print( "Date wasn't entered properly" )
--
http://mail.python.org/mailman/listinfo/python-list
