Take the 2-minute tour ×  I need to pick a future date from
calendar, suppose the date I am selecting is 04/30/2013. Now
what I want is to send the date to server. At server end I need
to calculate the number of days between the future date and
current date and send it to database.  The problem is that when
I do the calculation locally (because my server and browser are
in same timezone) it works fine, but when the server is in a
different timezone than the browser the difference in days does
not come as expected. Someone please help me how to solve the
timezone issues.  share|improve this question Why don't you
substract the dates on the client? –  NeplatnyUdaj Apr 17 '13 at
9:23 How do you send the date to the server? What format, I
mean? –  MaxArt Apr 17 '13 at 9:24 @user2266098 That would be a
violation of the MVC paradigm. –  MaxArt Apr 17 '13 at 9:25 Your
question is not entirely clear to me: you are using javascript
on the client side and java on your server ? – 
jeroen_de_schutter Apr 17 '13 at 9:26 W