Refactored few templates connected with datetimepicker. Refactored datetimepicker directive.