In my project I have list of dates in the string variables. I want to convert these strings into date format and then change the date format into another format.
To be clear, what I want is:-
“dd/mm/yyyy” string I need to convert to “dd-MMM-yyyy” date format
You said that you have some date into a String variable. There is no need to save it as DateTime, because you can convert to another format in same variable.
myDate is a String variable.
In case you need the date as DateTime variable, you can declare a new variable as System.DateTime and it will take the value: DateTime.ParseExact(myDate,"dd/MM/yyyy",Nothing)Main.xaml (8.8 KB)