I have created an android application in which I have used android date picker. While submitting form in my application I am getting date in this format "18-2-2021" and I want to format this date in "18-Feb-2021" format. I don't want to force my user to update application so I want to format date in my c# web service code.
I am trying to format date using below code but I am getting "String was not recognized as a valid DateTime.".
DateTime requestRaisedDate = DateTime.ParseExact(ApplicationID.REQUEST_RAISED_DATE, "dd-MM-yyyy",System.Globalization.CultureInfo.InvariantCulture);