                              view="view"
                              active-before="lab"
                              active-after="laa"
-                             hovered="hover">
+                             hovered="hover"
+                             min-date="min"
+                             max-date="max">
       </moment-datetimepicker>
     </div>
     <div class='middle'>

      period = step.step
      amount = step.amount

      scope.steps = for i in [0..amount] by 1
        currentStep = {
          past: step.compare(stepDate, scope.position) < 0
          future: step.compare(stepDate, scope.position) > 0

    )

    scope.$next = ->
      scope.position = moment(moment(scope.position) + viewsSteps[scope.view].step).toDate()

    scope.$previous = ->
      scope.position = moment(moment(scope.position) - viewsSteps[scope.view].step).toDate()

    selecting = null
    changeRange = (newDate) ->
