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

Recommended Answers

All 2 Replies

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

thx, its running good.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.