Here is a bit of code i just put together in vb.net..
Dim strDateTime As String
strDateTime = "26/12/2007 22:30:22"
Dim date1 As String = strDateTime
Dim date2 As String = Date.Today & " " & TimeOfDay
Dim ts As New TimeSpan()
ts = CDate(date2).Subtract(CDat
Dim intDays As Integer
Dim intHours As Integer
Dim intMinutes As Integer
intDays = ts.Days
intHours = ts.Hours
intMinutes = ts.Minutes
MsgBox(ts.Days & " Days " & ts.Hours & " Hours " & ts.Seconds & " Seconds ")





by: mattibuttPosted on 2009-09-19 at 02:48:00ID: 25372253
can you post some code what are you using sql, php, .net or java as CRM is a generic term