[VB]
Dim myTime As DateTime
myTime = DateTimePicker1.Text
[/VB]
this gives me a big number when i should have a few secs
[VB]
TextBox1.Text = DateDiff(DateInterval.Second, Now(), DateAdd(DateInterval.Second, CType(myTime.ToOADate(), Double), System.DateTime.Today))
[/VB]
And this gives me a big number too
[VB]
TextBox1.Text = DateDiff(DateInterval.Second, Now(), myTime)
[/VB]
I need to get the diff in secs between a time #7:35:04 PM# kept in myTime and Now()...
Anyone could help on this?
Dim myTime As DateTime
myTime = DateTimePicker1.Text
[/VB]
this gives me a big number when i should have a few secs
[VB]
TextBox1.Text = DateDiff(DateInterval.Second, Now(), DateAdd(DateInterval.Second, CType(myTime.ToOADate(), Double), System.DateTime.Today))
[/VB]
And this gives me a big number too
[VB]
TextBox1.Text = DateDiff(DateInterval.Second, Now(), myTime)
[/VB]
I need to get the diff in secs between a time #7:35:04 PM# kept in myTime and Now()...
Anyone could help on this?