need help to calculate for the duration between two dates, im using two datetimepicker and, i want to it to calculate the year month and date, can anyone help me?

Hi Danny, welcome to DaniWeb! Did you know there exists a TimeSpan Class?

You can use this bro,

       Dim T As TimeSpan = d1.Value - d2.Value
       MsgBox(T.Days & " Days " & T.Hours & " Hours " & T.Minutes & " Minutes ")

d1 and d2 are datetimepicker.

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.