Converting dates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • carlad48
    New Member
    • Apr 2007
    • 1

    Converting dates

    I'm working on some homework and can't figure this one out. Hopefully someone out there can help me.

    I am to create a script that allows a user to enter a date. The date can be entered with any of the following values: 4/9/04, 4/9/2004, 04/9/04, 04/09/2004 and 4/09/04. My script should display the date entered by the user as a string that reads April 9, 2004. This is simply a script that is run from the command line using the -w switch.
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    Welcome carlad48,

    Look into the following cpan module:

    cpan Date::Parse

    - Miller

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Post the code you have written so far. Maybe you are close to getting it right.

      Comment

      Working...