2

I am using jquery UI date picker.The user have to enter booking in date and booking out date and on the basis of these dates booking days are calculated.I have to set the timezone of UK in order to calculate booking days.How can i do this? As without setting the timezone the difference calculated between two dates is not correct.

Any help would be highly appreciable.

0

1 Answer 1

1

The javascript date object includes getTimezoneOffset() method based on user's machine settings and compared to GMT. I don't understand enough of how you need to use this in your application to guide any further

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.