DTpicker increasing the date

06-09-2005, 08:58 AM

I need to increase the date of the dtpicker by x days. I know how to set the value. what i want to be able to do is for the days to incremnt and for it to automaticallt adjust the mouth year.


06-09-2005, 09:01 AM
Use the DateAdd function to add the number of days to the date returned by the DTPicker's Value property and assign back to the Value property.

DTPicker1.Value = DateAdd("d", x, DTPicker1.Value)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum