Date & Time in ASP.net
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
Did you try DateTime.Parse? DateTime.TryParse? DateTime.ParseExact? http://msdn.microsoft.com/en-us/library/497a406b.aspx[^]
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
Try the following code. DateTime fdate = Convert.ToDateTime(txtstartdate.text.ToString()); string ST = ""; ST = String.Format("{0:MM/dd/yyyy}", fdate); :) :) :) :thumbsup:
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
try this one..
protected string FormatDate()
{
string strTemp;
strTemp = DateTime.Now.ToString("dd/MM/yyyy");
return strTemp;
}KiranKumar Roy
-
guys please tell me how convert sys date 04-10-2012 to dd-MM-yyyy and who to get system datetime format
try this one..
protected string FormatDate()
{
string strDate;
strDate = DateTime.Now.ToString("dd/MM/yyyy");
return strDate;
}KiranKumar Roy