Ok, I know I should know this after all these years, but I don't so...
We are getting an XML file from outside out world that has two times; StartTime and EndTime. The EndTime is a string (Xml - of course) that is "11:59:00PM" and when I run the following code it changes it's value to "11:00PM" What the????
Question
James Rose
Ok, I know I should know this after all these years, but I don't so...
We are getting an XML file from outside out world that has two times; StartTime and EndTime. The EndTime is a string (Xml - of course) that is "11:59:00PM" and when I run the following code it changes it's value to "11:00PM" What the????
Dim sItemEndTime As String = "11.59.00PM"
Dim dDate As System.DateTime
dDate = sItemEndTime
MessageBox.Show(dDate)
Any thoughts?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts