I have a string stored in a label and i need to change it back to a dateTime obj
can someone tell me if it can be done
Printable View
I have a string stored in a label and i need to change it back to a dateTime obj
can someone tell me if it can be done
Search the forum for ParseExact, someone asked about this a couple of weeks ago.
Assuming you just did something like this to put a date in your label:
Label1.Text = DateTime.Now.ToString()
Then you can do this:
Dim dt As New DateTime()
dt = DateTime.Parse(Label1.Text.ToString())
MessageBox.Show(dt.ToString())