Hi
I am trying to configure a Bug Tracking program that is written in Perl and want to get the dates to format differently.
These are the lines of code in one of the PERL Modules that I want to change...
sub now {
my $now = POSIX::strftime("%Y-%m-%d %H:%M:%S", localtime);
return $now;
}
What I want to return is a date in the format of (dd-mm-yyyy)..
my $now = POSIX::strftime("%d-%m-%Y %H:%M:%S", localtime);
But this just fails. Can anyone help?
I am trying to configure a Bug Tracking program that is written in Perl and want to get the dates to format differently.
These are the lines of code in one of the PERL Modules that I want to change...
sub now {
my $now = POSIX::strftime("%Y-%m-%d %H:%M:%S", localtime);
return $now;
}
What I want to return is a date in the format of (dd-mm-yyyy)..
my $now = POSIX::strftime("%d-%m-%Y %H:%M:%S", localtime);
But this just fails. Can anyone help?