Convert dd/MM/yyyy to MM/dd/YYYY [duplicate]
问题 This question already has answers here : changing date format from dd/MM/yyyy to MM/dd/yyyy [duplicate] (4 answers) Closed 3 years ago . I need to convert "28/08/2012" to MM/dd/YYYY format that means "08/28/2012". How can I do that? I am using below code , but it threw exception to me. DateTime.ParseExact("28/08/2012", "ddMMyyyy", CultureInfo.InvariantCulture) 回答1: but it threw exception to me Problem: Your date contains / seperator ( "28/08/2012" ) and you are not giving that in your date