title: Datepicker with react-redux not working "expected instance of Date"
body: <p>I'm creating a form using redux-form react-datepicker and moment but I'm getting an error with the date format.</p>
  
  <p>Its shows multiple errors and an Invalid Input Field message in the datepicker</p>
  
  <p>Here is my form utility:</p>
  
  <pre><code>import React from 'react'
  import { Form, Label } from 'semantic-ui-react'
  import DatePicker from 'react-datepicker'
  import 'react-datepicker/dist/react-datepicker.css'
  import moment from 'moment'
  
  const DateInput = ({input, width, placeholder, meta: {touched, error}, ...rest}) =&gt; {
      return(
          &lt;Form.Field error={touched &amp;&amp; !!error} width={width}&gt;
              &lt;DatePicker 
                  {...rest}
                  placeholderText={placeholder}
                  selected={input.value ? moment(input.value) : null}
                  onChange={input.onChange}
              /&gt;
              {touched &amp;&amp; error &amp;&amp; &lt;Label basic color="red"&gt;{error}&lt;/Label&gt;}
          &lt;/Form.Field&gt;
      )
  }
  
  export default DateInput
  
  </code></pre>
  
  <p>And the component import using redux-form Field</p>
  
  <pre><code>&lt;Field
   name="date"
   type="text"
   component={DateInput}
   dateFormat="YYYY/MM/DD HH:mm"
   timeFormat="HH:mm"
   showTimeSelect
   placeholder="Date and time of event"
  /&gt;
  </code></pre>
  
  <p>I already used moment().format() to show the date on the datepicker field but then it shows up this error:</p>
  
  <p>Invalid prop <code>selected</code> of type <code>Moment</code> supplied to <code>DatePicker</code>, expected instance of <code>Date</code>.</p>