How to use the react-day-picker/moment.formatDate function in react-day-picker

To help you get started, we’ve selected a few react-day-picker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github data-driven-forms / react-forms / packages / pf3-component-mapper / src / form-fields / date-time-picker / picker-input.js View on Github external
const PickerInput = ({ variant, selectedDay, locale, handleOverlayToggle, isDisabled, isClearable, clearValue, inputFormat, ...props }) =>(
  
     handleOverlayToggle(true) }
      className="picker-input"
      disabled={ isDisabled }
    />
    { isClearable && selectedDay && (
      
        
      
    ) }
     handleOverlayToggle(true) }>
github sentinel-hub / EOBrowser / src / components / DayPicker / index.js View on Github external
handleDayClick = (day, modifiers, e) => {
    this.props.onSelect(moment(day).format(Store.current.dateFormat));
    this.setState({
      selectedDay: formatDate(new Date(day), 'YYYY-MM-DD'),
      month: day,
      expanded: false,
    });
    this.textInput.blur();
  };