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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Days Gone 0
Built-In Function for Variance? 2
IsRemoteAdmin function 1
Get DTS datapump source columns 1
(New Object).Method 4
structures in VB.Net 11
For Sale Ulefone Armor X5 7
val function returns NaN 36

Back
Top