hi i want vb6 code help.
00:01:00 + 00:05:00 = 00:06:00
00:10:00 - 00:05:00 = 00:05:00
i want the result is same format.

lets have a look at following :-

Dim Time1 As Date
Dim Time2 As Date

Time1 = Format(Text1.Text, "hh:nn:ss")
Time2 = Format(Text2.Text, "hh:nn:ss")
MsgBox Format(Time1 - Time2, "hh:nn:ss")
MsgBox Format(Time1 + Time2, "hh:nn:ss")   

i want the result is same format.

yes it will result in same format

hope this helps you to solve the issue . . .

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.