When you lose a lot of time fighting with Datepicker and also looking for solution in google, you decide to do it yourself.