Venu,
The format you would want to use is:
M/d/yyyy h:mm:ss tt
Like this:
// Get the string representation of the current DateTime.
string s = DateTime.Now.ToString("M/d/yyyy h:mm:ss tt");
If you want to show trailing 0's, then you should double the M, d, or h,
for the month, day, or hour respectively.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"karunakar" <ka***********@stcroixsystems.com> wrote in message
news:OE**************@TK2MSFTNGP09.phx.gbl...
Hi All
Here datetime format 10/14/2004 6:29:20 PM Like
this is getting from database.
Date only i need to populate in my applcation.
but i need to populate the
Thank u
Venu