in reply to Re: Time Piece Error Parsing
in thread Time Piece Error Parsing

Interesting, so this should work even if the month has two digits.:
$date = $t->strptime(sprintf("%02d",$t->mon).sprintf("%02d",$t->day_of +_month).$t->year, '%m%d%Y');

Replies are listed 'Best First'.
Re^3: Time Piece Error Parsing
by runrig (Abbot) on Apr 15, 2016 at 15:58 UTC
    Alternatively:
    $date = $t->strptime(sprintf("%02d%02d%04d",$t->mon,$t->day_of_month,$ +t->year), '%m%d%Y');