J
Jeff
Hi All,
I am fairly new to VB .Net 2003. I have been reading a book and doing some
of the exercises. I was practicing with labels and it was explaing how to
have info show in the label, so I was experimenting with some of the other
fuctions they show like month, time etc. In the Form Load Event I could get
like Label1.Text = Month(Now) it would return a 9 or i could get the current
time to display. The book also reference Day(date) and it would return a
1-31 based on the day. But when ever I try to put Label1.text = Day(now) it
gives me an error saying Day is not valid. So I guess I am confused whe the
others would work but not Day. I can put this same expression in an access
form and it works just fine.
Can some tell me why it does not work in VB.Net?
Thanks for the Help.
Jeff
I am fairly new to VB .Net 2003. I have been reading a book and doing some
of the exercises. I was practicing with labels and it was explaing how to
have info show in the label, so I was experimenting with some of the other
fuctions they show like month, time etc. In the Form Load Event I could get
like Label1.Text = Month(Now) it would return a 9 or i could get the current
time to display. The book also reference Day(date) and it would return a
1-31 based on the day. But when ever I try to put Label1.text = Day(now) it
gives me an error saying Day is not valid. So I guess I am confused whe the
others would work but not Day. I can put this same expression in an access
form and it works just fine.
Can some tell me why it does not work in VB.Net?
Thanks for the Help.
Jeff