Date vs. DateTime

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

Converting a vb2003 program to vb2005 and making some changes I just
noticed in 2005 DateTime was not showing as an option when I type

dim starttime as

Then I noticed it's in the all listing not the common. Then I notice
Date and DateTime give the same blurb about saving date and time. So
what's the difference between them?

FYI I do plenty of Visual Foxpro and VB2003 work as well so I frequently
get my wires crossed between what you to do in which language.
 
cj said:
Converting a vb2003 program to vb2005 and making some changes I just
noticed in 2005 DateTime was not showing as an option when I type

dim starttime as

Then I noticed it's in the all listing not the common. Then I notice Date
and DateTime give the same blurb about saving date and time. So what's
the difference between them?


'Date' is a VB keyword that is an alias for 'System.DateTime', like
'Integer' is an alias for 'System.Int32'.
 
Back
Top