Skip to content

Instantly share code, notes, and snippets.

@ThinhPhan
Created September 29, 2022 02:17
Show Gist options
  • Save ThinhPhan/a8e4d2262fd3512225adff1200415142 to your computer and use it in GitHub Desktop.
Save ThinhPhan/a8e4d2262fd3512225adff1200415142 to your computer and use it in GitHub Desktop.
Moment

Check date is valid

moment/moment#1639

moment(undefined).isValid() return true?

moment(someString || null).isValid()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment