Question : Get Date Diffrence in Hours & Minutes in C#

Hello,

I want to get the date diffrence between two date.

I already used TimeSpan for that.  But it wont work properly in the case of end of month or year.

So Give me solution ASAP.  

Answer : Get Date Diffrence in Hours & Minutes in C#

Use Sql Statement select datediff(day,'02-02-2010',getdate()) and take it on Datatable ..
In Sql  you can  easilt find datediff
Random Solutions  
 
programming4us programming4us