PDA

Click to See Complete Forum and Search --> : Grab the current system date


colin
Nov 22nd, 2000, 05:16 AM
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

paulw
Nov 22nd, 2000, 05:51 AM
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.

colin
Nov 22nd, 2000, 06:24 AM
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!!