I have “02 September 2011” as string and I want to convert it to “02092011”.
I am using Convert.ToDateTime("02 September 2011") and I am getting “dd/mm/yyyy 00:00:00”.
How to format so not to include the time?
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.
Convert.ToDateTime(“02 September 2011”).ToShortDateString()