Results 1 to 4 of 4

Thread: [RESOLVED] Date and DateTime?

  1. #1

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Resolved [RESOLVED] Date and DateTime?

    As I looked on msdn I can’t figure it out what is the difference between the Date data type and DateTime. They both have the same constructors. If there is no difference, than why we have them both?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Date and DateTime?

    Date is a VB.NET-specific data type that maps to System.DateTime.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Date and DateTime?

    Date is to DateTime as Integer is to Int32, Long is to Int64 and Short is to Int16.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: Date and DateTime?

    Ah I see it now; my brain got blocked for a while. Thanks guys, that makes sense.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width