You can convert hh:mm:ss to a date, check it's valid and get the difference between times
Dim TimeA As Date
Dim TimeB As Date
Dim hh As Integer
Dim mm As Integer
Dim ss As Integer
If Not Date.TryParse(TextBox1.Text, TimeA) Then
' Not a date
If Not Date.TryParse(TextBox2.Text, TimeB) Then
' Not a date
' Subtract (= time between)
hh = TimeB.Subtract(TimeA).Hours
mm = TimeB.Subtract(TimeA).Minutes
ss = TimeB.Subtract(TimeA).Seconds
TextBox3.Text = hh.ToString.PadLeft(2, CChar("0")) & ":" & mm.ToString.PadLeft(2, CChar("0")) & ":" & ss.ToString.PadLeft(2, CChar("0"))
Start a new thread for "how to save customized time format to a db". In that thread, tell which db you're using and show a bit more code i.e. what is your customized date/time format and how you try to save customized date/time format to db.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...