I have got below date format in my result,I am using C# 2.0
ExpiryDate = "31/03/2011 00:00:00";
spnExpiryDate.InnerHtml = ExpiryDate;
Now when I am going to show this in HTML it should be converted to 31 Mar 2011 format.
Please suggest!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, parse the string to a
DateTime, and then format it using theDateTime‘sToString: