(undef, undef, undef, $Day, $Month, $Year, undef, undef, undef) = localtime(time); $Month++; $Year += 1900; $MySQLDate = "${Year}-${Month}-${Day}";