|
-
May 14th, 2003, 08:49 PM
#1
Thread Starter
Member
how do u change string into date
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
-
May 14th, 2003, 09:02 PM
#2
Fanatic Member
Search the forum for ParseExact, someone asked about this a couple of weeks ago.
-
May 14th, 2003, 09:04 PM
#3
PowerPoster
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())
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|