Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Label in grid View

ASP.NET
<asp:Label ID="lblInTime" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "InTime", "{0:dd/MM/yyyy HH:mm}") %>'></asp:Label>


The datetime format on most of the system is in dd/MM/yyyy. But for one of my client, it is in dd-MM-yyyy.

What could be the reason for it?

What I have tried:

I have tried adding culuture info. But it didnt seem to work out.
Posted
Comments
Afzaal Ahmad Zeeshan 25-Aug-18 8:39am    
Preferences or locality of the client might be at play here.

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