Day function

  • Thread starter Thread starter jbw
  • Start date Start date
J

jbw

i am new to programming as well as new to vb.net. i am having trouble using
the day() function mentioned in my step by step guild book. i get an error
saying that day is a type and cannot be used as an expression. can someone
tell me how to use this function.

also, if anyone knows a good tutoral site for complete lambers cold you pass
that along as well.
 
jbw said:
i am new to programming as well as new to vb.net. i am having
trouble using the day() function mentioned in my step by step guild
book. i get an error saying that day is a type and cannot be used as
an expression. can someone tell me how to use this function.

also, if anyone knows a good tutoral site for complete lambers cold
you pass that along as well.

I don't find a Day type and I think you also don't need the Day function,
but I also think you should post some code to show us your intention.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
* "jbw said:
i am new to programming as well as new to vb.net. i am having trouble using
the day() function mentioned in my step by step guild book. i get an error
saying that day is a type and cannot be used as an expression. can someone
tell me how to use this function.

What's the 'Day' function?
 
Hi JBW,

You can use it by instance like this and than you get the day of this month

MsgBox(Now.Day.ToString())

I hope that this makes it a little bit clear for you, if not feel free to
asK?

Cor
 
* "Cor Ligthert said:
The Day functions to take a part of the Date function.

It's actually a member of 'DateAndTime' but IntelliSense didn't work
because there is a conflict with the 'System.Windows.Forms.Day' enum.
 
* "jbw said:
i am new to programming as well as new to vb.net. i am having trouble using
the day() function mentioned in my step by step guild book. i get an error
saying that day is a type and cannot be used as an expression. can someone
tell me how to use this function.

also, if anyone knows a good tutoral site for complete lambers cold you pass
that along as well.

Write 'DateAndTime.Day' instead of 'Day'.
 
Back
Top