Title: Signature.html
Is there some method or function that checks whether a date is valid. For example, these are not valid (yyyy/mm/dd format here for reference.):

2008/02/33
2k+8/11/21
200.8/10/02
2006/3/five
2007/-6/18
2009/14/2

I'm assuming the program has determined there are three parts to the date, and they will be passed to the function for verification--empty items detected, as well, 2004//25. That is, dates like 2008/12/ and 2002/5/5/7 are caught, and the three parts are passed, for example, in 2006/3/five, as 2006, 3 and five.

Perhaps a Try is useful with some function?
--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
            
          Interesting government experience prior to their presidency
          or bid for it:
             Abraham Lincoln: 2 years; George Washington: 0 years;
              Dwight Eisenhower: 0 years; James Buchanan: 29 years*
                 Barack Obama: 11 years; John McCain: 26 years

              * Not a particularly good president at all
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to