Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey,
Good Morning Sir,
How to Convert "Czech (Czech Republic) (cs-CZ)" Date in my Custom Format
i tried but not success and also not found any solution on google related this
pls help me to solved this issue.
<asp:Label ID="Label1" runat="server" Text='<%# (Eval("InvoiceDate") != DBNull.Value ? string.Format("0:MMM dd, yyyy}",DateTime.ParseExact(Eval("InvoiceDate").ToString(), "d.M.yyyy", System.Globalization.CultureInfo.InvariantCulture)) : Eval("InvoiceDate")) %>'></asp:Label>--%>
Posted

1 solution

Try this
C#
Thread.CurrentThread.CurrentCulture = new CultureInfo("cz-CZ");
// Displays dt, formatted using the ShortDatePattern
// and the CurrentThread.CurrentCulture.
Console.WriteLine(dt.ToString("d"));

Link here[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-May-15 10:28am    
5ed.
—SA
Abhinav S 1-May-15 12:06pm    
Thank you SA.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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