marctwo has asked for the wisdom of the Perl Monks concerning the following question:
I am sure I am making this much more difficult than it needs to be but I am struggling to find a simple answer to this.
I don't wish to use bad language, but I am basically looking for the Perl equivalent of DateSerial in Visual Basic (sorry!). I.E. to be able to easily convert a yyyy/mm/dd string into a date.
I have looked into using Date::Manip and Date:Calc but they look too complicated for my needs.
Ultimately I need to read in a date string, add or subtract days, months or years from that date, and convert back to a string.
Your help would be very much appreciated.
Marc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting string to date
by Abigail-II (Bishop) on Nov 19, 2003 at 17:42 UTC | |
|
Re: Converting string to date
by PodMaster (Abbot) on Nov 19, 2003 at 17:53 UTC | |
|
Re: Converting string to date
by bart (Canon) on Nov 19, 2003 at 18:01 UTC | |
|
Re: Converting string to date
by l3nz (Friar) on Nov 19, 2003 at 18:18 UTC | |
by marctwo (Acolyte) on Nov 26, 2003 at 15:58 UTC | |
|
Re: Converting string to date
by dws (Chancellor) on Nov 19, 2003 at 17:55 UTC |