I have a gridview on my form. I am binding it with same data. There is a template field, which I mentioned below.
<asp:TemplateField HeaderText="To">
<itemtemplate>
<asp:Label ID="Label2" runat="server"
Text='<%# Convert.ToDateTime(Eval("Leave_To")).ToString("dd/MM/yyyy") %>'></asp:Label>
</itemtemplate>
<headerstyle horizontalalign="Left" />
<itemstyle horizontalalign="Left" />
</asp:TemplateField>
My issue is that when I run this form on Mozilla, Opera, Chrome etc. it shows the date format (with oblique) dd/mm/yyyy
, but when I run it with ie 10 it shows format (with hyphen) dd-mm-yyyy
. why?
Can anyone help on this ?