0

hi all,
im a newer in vb.net
i want to alleviate two different date. im using two datetimepicker in this case.
if i just to alleviating with pus the year of each dtpicker i can't to get detail result.
ex :
02/12/2007 - 01/11/2007 = 1 month 0 days

thx, best regards

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Jade_me
0

you can use a function in vb.net to do that (datediff())

dim result as long
        result = DateDiff(DateInterval.Day, dtpicker1.Value, dtpicker2.value)

if you want to get details, you can count month and days by divide the result with days in selected month
in dtpicker

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.