V Vincent Apr 22, 2005 #1 Hi, in VB6 I have something like: intdays=datediff("d",date1,date2)+1 how do I write this in c# ? Thanks
Hi, in VB6 I have something like: intdays=datediff("d",date1,date2)+1 how do I write this in c# ? Thanks
J Jamin Guy Apr 22, 2005 #2 I think this will work for you. Timespan t = date1 - date2; int days = t.Days;