uoperl has asked for the wisdom of the Perl Monks concerning the following question:
I am a beginer with perl and just trying different things. Here is my question where all you unselfish experts may be able to help. I am going through a text file which has following contents:
2002-10-28 is today, 28-10-2001 was a year ago.
I want to verify that the date is valid. I wish to do the same for a few different formats such as:
Wednesday, November 6, 2002
November 6, 2002
06/11/02
06.11.2002
6 November 2002
6-Nov-02
(there are many more but once guided I think i should be able to get the rest) Once verified I want to output this (simply into an output txt file):
<date>2002-10-28</date> is today, <date>28-10-2001</date> was a year ago.
Hope someone will be able to help me with this. Thank you again to everyone for any advice or help.
Vince
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date Format Test and Taging.
by Enlil (Parson) on Nov 06, 2002 at 06:17 UTC |