updated script to also change any incorrect dateformat variables to the correct case