How to Covert "18-10-2015 12:16:11" dateformat to "2015-10-18 12:16:11" in c#

My API is taking "2015-10-18 12:16:11" date format. But from enduser I am getting "18-10-2015 12:16:11" date format. So how to convert DD-MM-YYYY HH:MM:SS to YYYY-MM-DD HH:MM:SS

Tagged:

Best Answers

Answers

Sign In or Register to comment.