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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Zoran HorvatPosted Aug 2, 2011, 11:05 AM
Zoran
VulpesPosted Aug 2, 2011, 11:05 AM
string s = dt.ToString("M/dd/yyyy h:mm tt");