title: How can i get selected day, month, year and hours,minute from React Native datepicker every time i pick it?
body: <pre><code>import DatePicker from 'react-native-datepicker';
  
  export default class App extends Component {
     static navigationOptions= ({navigation}) =&gt;({
            header: null
      });
  constructor(props) {
      super(props);
  
      this.state = {
        date: '',
        time: '',
  
      };
    }
  
    componentWillMount() {
      this._panResponder = PanResponder.create({
        onStartShouldSetPanResponder: (e) =&gt; {console.log('onStartShouldSetPanResponder'); return true;},
        onMoveShouldSetPanResponder: (e) =&gt; {console.log('onMoveShouldSetPanResponder'); return true;},
        onPanResponderGrant: (e) =&gt; console.log('onPanResponderGrant'),
        onPanResponderMove: (e) =&gt; console.log('onPanResponderMove'),
        onPanResponderRelease: (e) =&gt; console.log('onPanResponderRelease'),
        onPanResponderTerminate: (e) =&gt; console.log('onPanResponderTerminate')
      });
  
  
    }
  
    render() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;Text style={styles.welcome}&gt;
            Welcome to react-native-datepicker example!
          &lt;/Text&gt;
          &lt;DatePicker
            style={{width: 200}}
            date={this.state.date}
            mode="date"
            placeholder="placeholder"
            format="DD-MM-YYYY"
            minDate="01-01-1930"
            maxDate="31-12-2099"
            confirmBtnText="Confirm"
            cancelBtnText="Cancel"
            iconSource={require('./google_calendar.png')}
            onDateChange={(date) =&gt; {this.setState({date: date});}}
          /&gt;
          &lt;Text style={styles.instructions}&gt;date: {this.state.date}&lt;/Text&gt;
          &lt;DatePicker
            style={{width: 200}}
            date={this.state.time}
            mode="time"
            placeholder="placeholder"
            format="HH:mm"
            confirmBtnText="Confirm"
            cancelBtnText="Cancel"
            minuteInterval={10}
            onDateChange={(time) =&gt; {this.setState({time: time});}}
          /&gt;
          &lt;Text style={styles.instructions}&gt;time: {this.state.time}&lt;/Text&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>
  
  <p>How can i get from this data day,month,year,hour and minute ?</p>