| | |
| | | // timeFormat: TYPES.string | TYPES.bool, |
| | | inputProps: TYPES.object, |
| | | viewMode: TYPES.oneOf(['years', 'months', 'days', 'time']), |
| | | isValidDate: TYPES.func |
| | | isValidDate: TYPES.func, |
| | | open: TYPES.bool, |
| | | strictParsing: TYPES.bool |
| | | }, |
| | | |
| | | getDefaultProps: function() { |
| | |
| | | onBlur: nof, |
| | | onChange: nof, |
| | | timeFormat: true, |
| | | dateFormat: true |
| | | dateFormat: true, |
| | | strictParsing: true |
| | | }; |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | localMoment: function( date, format ){ |
| | | var m = moment( date, format ); |
| | | var m = moment( date, format, this.props.strictParsing ); |
| | | if( this.props.locale ) |
| | | m.locale( this.props.locale ); |
| | | return m; |