Results 1 to 5 of 5

Thread: can someone help me?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2009
    Posts
    7

    can someone help me?

    is there a datatype available in visual basic that can be used to store dates?

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: can someone help me?

    It's called "Date"

    Dim myDate As Date
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: can someone help me?

    Yes, the Date datatype:

    Code:
    Dim d As Date = DateTime.Today

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2009
    Posts
    7

    Re: can someone help me?

    hah seemed easy enough..thank you

  5. #5
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: can someone help me?

    yeah, I keep thinking old school integers, doubles, arrays and make functions to deal with these things, but not knowingly vb does these things for you.
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

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