You no need to send a server call for taking the date difference. By using Javascript or jquery you can calculate the difference inthe client side itself
I highly recommend using the excellent datejs framework to easily do all your date time calculations
http://www.datejs.com/[
^]
Hope this helps