How to set the value of a textbox textmode=date ASP.NET C#

This has nothing to do with asp.net, but Html5. When using type="date" you should always use the format yyyy-MM-dd (W3C standard)

The problem is that in browsers that don’t support type=date, this will show up as 2014-03-30, but on browsers that do support it, it is displayed according to the regional settings in the client OS.

So it may be 2014-03-30, 30.March.2014 or Mar-30-2014, you have no control over the format, the user has.

Leave a Comment