in reply to Formatting a date
From there you can manipulate it however you want, but to make it a little more robust you can create a DateTime object from the data so you can manipulate it a little more freely.$date_string = "0406141832"; ($year,$month,$day,$hour,$minute) = ( $date_string =~ /(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)/ );
|
|---|