in reply to Using Time::Piece Strptime

It's giving you as much info as you gave it to use.

'%D' is a shortcut for '%m/%d/%y'. '%M' is the minute as a decimal (0-59). '%b' is abbreviated month name. '%Y' is the year with century as a decimal. See man strptime.

# derived from your post my $date = '3/11/16, 00, Mar, 2016'; $date1 = Time::Piece->strptime($date, '%D, %M, %b, %Y'); print "'$date' parses to '$date1'\n"; __END__ '3/11/16, 0, Mar, 2016' parses as 'Fri Mar 11 00:00:00 2016'

Update: Fixed print and added output.