fixed datetimepicker; added conveter for js date