in my textbox textformat is dd-MM-yyyy
i want to convert it to datetime
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Upendra Pratap ShahiPosted Sep 25, 2015, 5:30 AM
DateTime dt = DateTime.ParseExact("24-01-2013", "dd-MM-yyyy", CultureInfo.InvariantCulture);
Rajeesh MenothPosted Sep 25, 2015, 5:14 AM
Deepak SainiPosted Sep 25, 2015, 5:00 AM
Susanta RoutPosted Sep 25, 2015, 4:44 AM
Deepak SainiPosted Sep 25, 2015, 3:45 AM