Hello all,

I am desperately trying to get a program working, but cannot get it to subtract between two dates using the DateTimePicker tool. It is a Uni assignment. The user has to enter two dates, one is subtracted from the other and then the user clicks on a button to Calculate. The code in question is as follows:

Dim Calc_CurrentDateText As String
Dim Calc_DateJoinedText As String
Calc_CurrentDateText = Calc_CurrentDatePicker.Value.Date
Calc_DateJoinedText = Calc_DateJoinedPicker.Value.Date

ReckonableService = Calc_CurrentDateText - Calc_DateJoinedText

I have tried setting the 'Dim Calc_CurrentDateText as String' to Date, Double, etc, but nothing seems to work.

Any help would be appreciated.

Thanks in advance.

Adrian