Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Is there any one use jquery date picker in his mvc5 web application using en-GB format "dd/mm/yyyyy"? If you really use then please care to reply. I already Google and found so many people before me ask same question and got different type of answers. Some answers works for someone and same answer not works for others. If you really not use it and have no idea about the problem just ignore it.

What I have tried:

Google it found some solution where they suggest to override jquery date validation. But nothing works and I am looking for simple solution without override the jquery validation.
Posted
Updated 3-Oct-16 21:51pm
Comments
ntuthuko-m 30-Sep-16 5:45am    
That problem might be due to having different date formats on your computer (check the task bar's date format) vs visual studio/ your web server's date format.
MayurDighe 4-Oct-16 2:39am    
Use Moment.js

Hi,
Try the following code snippet within your code .
$("#ControlName").datepicker({ dateFormat: 'dd/MM/yyyy'});

Hoping this would be helpful.
 
Share this answer
 
here the link for Jquery UI.. May be you might have tried and searched on this...

Datepicker Widget | jQuery UI API Documentation[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900