The syntax is: DateTime.ParseExact(dateString, currentFormat,Nothing).ToString(newFormat)
For example if your date is “Dec-15-2020” and you want to convert it to Dec 15, 2020
you do DateTime.ParseExact("Dec-15-2020","MMM-dd-yyyy",Nothing).ToString("MMM dd, yyyy")
you can even add hours/minutes/seconds
hours = hh
minutes = mm (note that upper case M = month, lower case m = minutes)
seconds = ss
This is just a few of the choices, you can see the full list here
I tried make next edition of this by having datatable which has “Opening date” and which I loop through and change every row opening date to this format, but I got error “Assign: String was not recognized as a valid DateTime.”