               disabled: @props.badSubject
 
             <DatePicker
-              value={val}
-              date={val}
               selected={this.state.selectedDate}
               onChange={@handleDateChange}
               placeholderText="Click to select a date"
-              minDate={moment().subtract(5, 'days')}
-              maxDate={moment()}
+              minDate={ moment( this.props.subject.meta_data.year + "-01-01" ) }
+              maxDate={ moment( String(parseInt(this.props.subject.meta_data.year) + 1) + "-01-01" ) }
               type="custom-date"
               {...atts}
             />


  # Event handler that parses Moment.js objects
  handleDateChange: (e) ->
    @setState
      selectedDate: moment(e._d)
      date: moment(e._d)
    @updateValue e._d

  handleKeyDown: (e) ->
    @handleChange(e) # updates any autocomplete values

  handleBadMark: ()->
    newAnnotation = []
    newAnnotation["low_quality_subject"]

  findMinDate: ()->
    return moment( this.props.subject.meta_data.year + "-01-01" )

  findMaxDate: ()->
    return moment( String(parseInt(this.props.subject.meta_data.year) + 1) + "-01-01" )

  render: ->
    return null if @props.loading # hide transcribe tool while loading image
