Difference between Date

Wondering anybody has a service to find the difference between two dates in minutes. I am trying to create a generic service that will take the date1 and format, date2 and format then find the difference between these two in minutes.

Thanks,
Muru.