vb2010. convert string to date
hi everyone
I'm studying visual basic in my course
and in my book there was this example
http://www.freeimagehosting.net/uplo...6d0fd5adbb.jpg
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
http://www.freeimagehosting.net/uplo...52207fcbe9.jpg
can you help
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?
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?
Re: vb2010. convert string to date
You need to enter a string that your system can recognise as a date.
Re: vb2010. convert string to date
I change the calendar type and it work now
thank you