Pull request for: #310, #312, #347, #335

All kinds of different changes related to the datepicker functionality
and dateformat