|
-
Apr 22nd, 2004, 02:15 PM
#1
Thread Starter
New Member
Subtracting Between Dates...
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|