I need to change format of
this.TextBox3.Text = DateTime.Now.ToShortDateString();
so it returns (for example) 25.02.2012, but I need 02.25.2012
How can this be done?
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.
Use
DateTime.ToStringwith the specified formatMM.dd.yyyy:Here,
MMmeans the month from 01 to 12,ddmeans the day from 01 to 31 andyyyymeans the year as a four-digit number.