Code for datepicker loading locale settings refactored. Timestamp creation also improved.