|
-
Feb 7th, 2007, 05:18 PM
#1
Thread Starter
Member
-
Feb 9th, 2007, 03:46 PM
#2
Thread Starter
Member
Re: Calculation with dates...situation 2.
I updated the topic, could you check and if possible help me. Thank you!
-
Feb 9th, 2007, 04:04 PM
#3
Re: Calculation with dates...situation 2.
Does this help?
VB Code:
Private Sub Command1_Click()
a = "00:40"
b = "00:25"
Hr = Val(Left(a, 2)) - Val(Left(b, 2))
Min = Val(Right(a, 2)) - Val(Right(b, 2))
Diff = Format(Hr, "00") & ":" & Format(Min, "00")
'I have used a messagebox to display result
'you can store it in a variable...
MsgBox Diff
End Sub
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Feb 9th, 2007, 04:51 PM
#4
Thread Starter
Member
Re: Calculation with dates...situation 2.
Ok ! I did a very crazy thing cause I'm working with hours and values could not be less than 0...so far it worked.
Guy thank you a lot helping me!
Now I have to create an array hahaaha
Last edited by hpunaro; Feb 9th, 2007 at 05:23 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|