11-07-24, 10:11 AM
(11-07-24, 07:06 AM)الجيل كتب : السلام عليكم و رحمة الله وبركاته
احتاج ان يقوم الموقع عند دخول الشخص الى طرح التاريخ السابق من الحالي و المتضمن الزمن مثلاً
24/07/12 23:55:13 - 24/07/10 09:35:03
جرب هذه الدالة فقط قوم بتمرير التواريخ
PHP كود :
Private Sub CalculateTimeDifference(dateTime1 As DateTime, dateTime2 As DateTime)
Dim timeDifference As TimeSpan = dateTime1 - dateTime2
Dim days As Integer = timeDifference.Days
Dim hours As Integer = timeDifference.Hours
Dim minutes As Integer = timeDifference.Minutes
Dim seconds As Integer = timeDifference.Seconds
MessageBox.Show("الفرق هو: " & days & " أيام، " & hours & " ساعات، " & minutes & " دقائق، " & seconds & " ثواني.")
End Sub

