Hello
try this:
Dim str As String = Nothing
Dim strArr As String() = Nothing
str = "2011-10-20T20:49:59-0400"
strArr = str.Split("T")
Dim converted As String = String.Format("{0} {1}", DateTime.Parse(strArr(0)).ToString("MMMM-dd-yyyy"), strArr(1))
Of course, it's better to use
TryParse
instead of
Pars
and handle unknown formats.