I am trying to convert 2014-12-25
(yyyy-mm-dd), to December 25, 2014
. What is the best practice on how to do this? I currently have it stored in a variable because they are choosing the date from a date picker, but I am displaying that value somewhere else on the page and want it in the above format.
Code:
myLabel.Text = "Period: " + FromDate + " to " + ToDate;
The from and to date are the two variables holding the date from the datepicker. I need help on converting it to December 25, 2014