http://www.perlmonks.org?node_id=1058067


in reply to Re: Date format YYYY-MM-DD HH-MM-SS
in thread Date format YYYY-MM-DD HH-MM-SS

For *nix like systems the lame but the fast way is my $date = `date +"%Y-%m-%d-%H-%M-%S"`;