|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Convert US dates to mySQL datesby Daddio (Chaplain) |
| on May 01, 2001 at 01:07 UTC ( [id://76849]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Well, I don't know exactly what you are looking to do to "validate date", but the conversion is pretty straight forward:
Printing $out returns 2000-12-02. Sure, you can shorten it some, or use different syntax, but this should handle most of these date conversions. Of course, the standard "use strict" and "-w" recommendations apply.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||