Manipulating Dates.. Please help!!

jpetter7

Member
Joined
Jul 20, 2004
Messages
16
Programming Experience
Beginner
I am trying to develop a scheduling system that allows users to have a recurrence pattern. For example, a user may pick Jan 1 as start date, and Feb 5 as end date, and specify they only want to rent the facility on wednesdays. Therefore, I am trying to start this program by determining the number of weeks between start and end dates... how is this done? I keep getting the error that date can't be converted to long.
DateDiff("dd", dtpStartDate, dtpEndDate)

I have tried
dtpStartDate.Format = datepickerformat.long

I couldn't make it work that way either.
Thank you in advance, and any help is greatly appreciated.
 
Back
Top