Change the Regional Settings to reflect the correct date format using in the code or adjust the code to reflect the date format used in Regional Settings.