I can get the current date by using the following code:
use POSIX qw(strftime);
my $reportFile = strftime "%Y%m%d", localtime;
This gives me something like this:
I would like to add the time to this result like this:
How can I do it in Perl?