Created
November 9, 2019 07:02
-
-
Save muhrusdi/4d0370104741a2ae5469f58ddf52697b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// console.log(value[1]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]) | |
// const startYear = value[0]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]; | |
// const endYear = value[1]._d.toString().match(/\d{4}|\d{4}\-\d{4}/)[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment