in reply to Re: Re: Re: Re: Calculating between times
in thread Calculating between times
The thing is, I'm not testing the dates as they put them in. I have three pull down menus (day, month, year) where they select the according numbers. They have a 31 day limit and I don't do ANY checking on whether or not the month days actually exist. Unless you know of a perl snippet that could test to be sure these dates are valid, I'm not sure what to do.eval{ format($date); }; if ($@ =~ /range/) { print "Range error!"; }
|
|---|