Fix Lightswitch Date Format:
I’m using lightswitch html client for some of my applications, and I faced a problem with datepicker format its format are related to current culture and you can't change it, since I don’t like to use third party tools, I decided to try to fix the original one, and this is how:
Open the file msls-5.2.4.js, then comment line 20052 and add the following line instead of it:
var dateFormat = “DD/MM/YYYY”;
Your code should be like the following picture:
After saving the file you must minify it (using Web Essentials):
- You can apply this method to version 5.2.2, 5.2.3, and 5.2.4.
- This is not the perfect solution, but its work for all of my projects since the clients want this format and they are not interested in changing it.
- To minify the file you must delete the original minified one.