Perl Language Dates and Time Date formatting


Example

Time::Piece is available in perl 5 after version 10

use Time::Piece;

my $date = localtime->strftime('%m/%d/%Y');
print $date;
Output
07/26/2016