I have a string used to display the datetime, like: Mon, dd Dec YYYY hh:mm:ss.
I want to display it like this: dd Dec YYYY. Is there any simple way to do it?
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.
from http://www.csharp-examples.net/string-format-datetime/
See also:
if you only have the string, just split the string to an array, and concatenate the parts you want in another order
If the date can change, then do what SLaks posted in his answer