Can some one guide me on why I am getting this error. I have tried many permutations but I am not able to parse the string and get the date out of it
Public Function Starter(starterInput As LoginUserResponse) As List(Of GraphDataObj) Implements iSMS_Rest.Starter
Dim _currentUser = System.Web.HttpContext.Current.Cache(starterInput.tokenProp)
Dim res As Date
Dim provider As Globalization.CultureInfo = Globalization.CultureInfo.InvariantCulture
Dim dateString As String
dateString = starterInput.dateProp // VALUE HERE: "2016-08-31T03:59:59.000Z"
res = Date.ParseExact(dateString, "dd/MM/yyyy", provider)
'SOME CODE
End Function
Exception I am getting
I looked into this link for help: Convert a string to a datetime