How to use the @datepicker-react/hooks.parseDate function in @datepicker-react/hooks

To help you get started, we’ve selected a few @datepicker-react/hooks 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 tresko / react-datepicker / packages / styled / src / components / Input / Input.tsx View on Github external
ref.current = setTimeout(() => {
      onClick()
      // @ts-ignore
      const parsedDate = parseDate(dateValue, dateFormat, new Date())

      // @ts-ignore
      if (!isNaN(parsedDate)) {
        onChange(parsedDate)
      }
    }, 1000)
  }

@datepicker-react/hooks

React hooks for datepicker.

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis