You should use DateTime.Subtract to get a timespan, and then totaldays, as
in this example:
Module Module1
Sub Main()
Dim dt1 As New DateTime(2008, 9, 11)
Dim dt2 As New DateTime(2008, 9, 15)
Console.Out.WriteLine("Days: " & dt2.Subtract(dt1).TotalDays())
Console.In.ReadLine()
End Sub
End Module
"John" <in**@nospam.infovis.co.ukwrote in message
news:OK**************@TK2MSFTNGP06.phx.gbl...
Hi
How can I calculate days from the two dates entered in date time picker
fields on winform by a user?
Thanks
Regards