Question: how to convert string to date in dd/mm/yyyy format in asp.net?
Answer: ParseExact and later use ToString( "MM/dd/yyyy") to display the DateTime` object like. string d ="25/02/2012"; DateTime dt = DateTime. ParseExact(d, "d/M/yyyy", CultureInfo. InvariantCulture); // for both "1/1/2000" or "25/1/2000" formats string newString = dt.