in reply to Formats for date.

I've found these modules to be very helpful when dealing with dates:

Time::Piece, Date::Simple