KennyMac
01-13-2004, 02:34 PM
I want to add x amount of days to todays date. The number of days is held in an integer variable...how would i do it????
Adding days to todays dateKennyMac 01-13-2004, 02:34 PM I want to add x amount of days to todays date. The number of days is held in an integer variable...how would i do it???? Optikal 01-13-2004, 02:43 PM MyDate = DateAdd("d", x, Now()) MKoslof 01-13-2004, 02:43 PM look into the DateAdd function for VB... myDate = DateAdd("m", 6, originalDate) 'add 3 months myDate = DateAdd("d", -30, originalDate) 'subtracts 30 days EDIT: beat to the punch by Optikal :) KennyMac 01-13-2004, 02:46 PM look into the DateAdd function for VB... myDate = DateAdd("m", 6, originalDate) 'add 3 months myDate = DateAdd("d", -30, originalDate) 'subtracts 30 days EDIT: beat to the punch by Optikal :) Thank you both! |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum