|
-
Mar 10th, 2011, 07:41 AM
#1
Thread Starter
New Member
vb2010. convert string to date
hi everyone
I'm studying visual basic in my course
and in my book there was this example

so when I tried to do it , it didn't work
I did the same thing as written
but I don't know what is the problem with me
this is the error message apear to me

can you help
-
Mar 10th, 2011, 08:36 AM
#2
Re: vb2010. convert string to date
I can only assume that it has something to do with the system date format on your machine. If you do this:
vb.net Code:
MessageBox.Show(Date.Now.ToShortDateString())
what do you see?
-
Mar 10th, 2011, 08:44 AM
#3
Thread Starter
New Member
Re: vb2010. convert string to date
yaah, it seems that
what apear is the date of today 05/04/32
cuz my computer is in hijri calender
so what I have to do , can I change it?
-
Mar 10th, 2011, 05:34 PM
#4
Re: vb2010. convert string to date
You need to enter a string that your system can recognise as a date.
-
Mar 10th, 2011, 05:50 PM
#5
Thread Starter
New Member
Re: vb2010. convert string to date
I change the calendar type and it work now
thank you
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
|