Can’t get script to change case

I have tried 3 or 4 different commands to get the script to change the  case of the date text box it put in and nothing seems to work. 

I am very new to Corel draw and script writing so any help would be greatly appreciated.