Working with Dates in VB.NET

Discussion in 'ASP .Net' started by Justin Dutoit, Jan 28, 2004.

  1. Justin Dutoit, Jan 28, 2004
    #1
    1. Advertising

  2. You don't set the date, you assign it, like you would assign any other
    variable value:

    DateTime MyDate = DateTime.Now; // C#

    Dim MyDate As DateTime = DateTime.Now ' VB.Net

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Justin Dutoit" <> wrote in message
    news:#...
    > Hello. After looking at
    >

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
    > frlrfsystemdatetimememberstopic.asp
    > on msdn, I don't know how to set the Date of a datetime variable.
    > eg myDate.setDate(now)
    > or myDate.Date = now
    > Is there a reference teaching how to use dates in vb.net somewhere? I'm

    new
    > at dates, Thanks
    > Justin Dutoit
    >
    >
    Kevin Spencer, Jan 28, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Lozzi

    Dates dates dates dates... SQL and ASP.NET

    David Lozzi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    840
    Rob Schieber
    Sep 30, 2005
  2. PW

    Dates! Dates! Dates!

    PW, Aug 7, 2004, in forum: ASP General
    Replies:
    4
    Views:
    175
    Mark Schupp
    Aug 9, 2004
  3. Replies:
    1
    Views:
    194
    Jano Svitok
    Jul 17, 2007
  4. kellygreer1

    RFC-822 dates into Ruby dates

    kellygreer1, Jun 8, 2008, in forum: Ruby
    Replies:
    1
    Views:
    177
    Eric I.
    Jun 8, 2008
  5. Dr J R Stockton

    FAQ Dates; Opera Dates.

    Dr J R Stockton, Jun 18, 2007, in forum: Javascript
    Replies:
    0
    Views:
    147
    Dr J R Stockton
    Jun 18, 2007
Loading...

Share This Page