Dates and Time

Other topics

Date formatting

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

Contributors

Topic Id: 5923

Example Ids: 20791

This site is not affiliated with any of the contributors.