Format in = '2009-09-22 20::45::30' Reformated out = 22/09/2009[20::45::30] Thanks Skywalkermy $datetime = '2009-09-22 20::45::30'; my ($date,$time) = $datetime =~/(.+\s)(.+)/; $date =~ s/^\s+|\s$//; my @print_date = split ("-",$date); @print_date = reverse @print_date; print join ("/",@print_date) ."[$time]";
In reply to DateTime Reformat by skywalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |