Results 1 to 3 of 3

Thread: Grab the current system date

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    North East (UK)
    Posts
    204

    Unhappy

    Hi All,

    can anyone tell me how to grab the current system date when loading a form. I am trying to do this in various areas and have never used VB for this before. I would be particularly greatfull if anyone could tell my how to apply this to a DTPicker.

    Thanks

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Check out the Date function in VB. This will return today's date.

    I can't remember the method for setting the date in the DTPicker but it is something like:

    DTPicker.Date = Date()

    Check the properties available through the object browser.

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    North East (UK)
    Posts
    204
    Originally posted by paulw
    Check out the Date function in VB. This will return today's date.

    I can't remember the method for setting the date in the DTPicker but it is something like:

    DTPicker.Date = Date()

    Check the properties available through the object browser.

    P.


    Thanks Paul!!

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