I really hope this doesn't sound as dumb as I think it might...

  • Thread starter Thread starter Jason Kendall
  • Start date Start date
J

Jason Kendall

Am I correct that the only difference between the "Date" datatype and
the "DateTime" data type is that "Date" is a VB alias for the
"DateTime" one? Kinda like "Integer" and "Int32"...

I had heard that one was a structure and the other a class, but I
don't think that's right.
 
Thanks so much!

I also looked up "Date" from VB's help and noticed this line that had
somehow eluded me all this time:
"The equivalent .NET data type is System.DateTime."


-Jason Kendall
(e-mail address removed)
 
Jason Kendall said:
Am I correct that the only difference between the "Date" datatype and
the "DateTime" data type is that "Date" is a VB alias for the
"DateTime" one? Kinda like "Integer" and "Int32"...
Yes!

I had heard that one was a structure and the other a class, but I
don't think that's right.

'Date' is an alias for 'DateTime', which is a structure and thus a value
type.
 

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

Back
Top