use Date::Format; $file = '...filepath...'; $modTimeInSec = (stat $file)[9]; print time2str("%d/%m/%y", $modTimeInSec);