Hi,
I have used asp:bound field in my project to get the modified date and time from the database, It shows me 7/29/2011 2:20:26 PM
But I want only 7/29/2011 2:20 PM. I dont want second as a time.
So, please help me for that.
Asp: Bound Field
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Zoran HorvatRank #792 · 2.9K reputationPosted Aug 2, 2011, 7:05 AM EDT
Zoran
VulpesRank #55 · 29.2K reputationPosted Aug 2, 2011, 7:05 AM EDT
string s = dt.ToString("M/dd/yyyy h:mm tt");