in reply to changing time date format.

Date::Calc offers a huge variety of options for parsing and manipulating dates. This is good in that it can almost always do what you want.. and bad because the piece you want is buried among the 200 other features.

For a simple version you could also use split and strftime (provided by POSIX.

use POSIX qw(strftime); use strict; use warnings; my $date = '08/24/06'; my $time = '09:30'; my ($month,$day,$year) = split /\//, $date; my ($hour,$min) = split /:/, $time; my $formatted = strftime("%A, %B %d %I:%M %p",0,$min,$hour,$day,$month +,$year); print $formatted, "\n";