简体   繁体   中英

How to give a date format as dd-mm-yyyy in IE as like I am getting in google chrome

As input type=date won't works in IE is there any possible way to get dd-mm-yyyy format same like as we are getting in other browsers? Please help me out.

Well, I tested below code in IE/Chrome/Firefox and its working fine.

 <script src="//cdn.jsdelivr.net/webshim/1.14.5/polyfiller.js"></script> <script> webshims.setOptions('forms-ext', {types: 'date'}); webshims.polyfill('forms forms-ext'); </script> <input type="date" /> 

Hope this will help you :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM