Date.pl as well as many of the other files from your your previous UBB 5.xx version are missing from the cgi directory. You cannot upgrade the older version unless all the files from the older version are there.
If you removed the old files from the cgi directory, you will need to reupload them. Make sure you do not reupload the 4 variable files or you will lose your current settings.