Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21230

[RESOLVED] how do i get the total duration from 2 subitems

$
0
0
hey,
i am trying how to get the total duration from 2 subitems
E.X

this of course are date/time values
LsvwTreats.ListItems(X).SubItems(1) = 10:00
LsvwTreats.ListItems(X).SubItems(2) = 10:30
so the total duration is 30 minutes

LsvwTreats.ListItems(X).SubItems(1) = 09:00
LsvwTreats.ListItems(X).SubItems(2) = 11:00
so the total duration is 120 minutes

and so on...

Code:

StartDate = Format(m_pEditingEvent.StartTime, "dd/mm/yyyy") & " " & LsvwTreats.ListItems(X).SubItems(1)
EndDate = Format(m_pEditingEvent.StartTime, "dd/mm/yyyy") & " " & LsvwTreats.ListItems(X).SubItems(2)

tnx for any help
salsa :)

Viewing all articles
Browse latest Browse all 21230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>