Language could not be set to DateBox and DateTimeBox

Incorrect if statement was not allowing to change language of Date Pickers.