I am trying to get DateTime to out todays date in %d/%m-%Y\' format, but I get undef.
DateTime
%d/%m-%Y\'
undef
What am I doing wrong?
#
It could be written as simple as:
#!/usr/bin/env perl use strict; use warnings; use DateTime (); my $now = DateTime->now( 'time_zone' => 'UTC' ); print $now->strftime('%d/%m-%Y');