I'm not sure why you are getting this error message. It looks to be saying that the Left has an invalid argument or something like that. I have created a sample test page for you. Please load this page to your testing server and test the page. You should see a date, then the date with the switch applied to it. Please let me know your result.