Use Date::Manip; print UnixDate(ParseDate('next thursday'),'%A %e %b %Y'),"\n";