isDate/isValidDate returns false when it should be true
See original GitHub issueValid dates are being returned as false.
“ramda”: “^0.25.0” “ramda-adjunct”: “^2.10.0”
node 8.12.0 && 9.7.1
const ramda = require('ramda')
const RA = require('ramda-adjunct')
console.log(RA.isDate(new Date()))
console.log(RA.isValidDate(new Date()))
console.log(RA.isNotDate(new Date()))
console.log(RA.isNotValidDate(new Date()))
false
false
true
true
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Detecting an "invalid date" Date instance in JavaScript
Here's how I would do it: ... It will return NaN if it cannot parse the supplied date string. ... false console.log(isValidDate(new Date()));...
Read more >IsDate function (Visual Basic for Applications) - Microsoft Learn
Returns True if the expression is a date or is recognizable as a valid date or time ; otherwise, it returns False.
Read more >IsDate - Adobe Support
Determines whether a string or Java object can be converted to a date/time value. Returns. True, if string can be converted to a...
Read more >Check if a Date is valid using JavaScript | bobbyhadz
Check if passing the date to the `isNaN()` function returns `false`. ... The instanceof operator will only return true if the value to...
Read more >How to Check Whether an Object is a Date - W3docs
let isDate = function (input) { ... return false; ... However, it will return true for invalid dates too, for example, new Date('random_string')...
Read more >
Top Related Medium Post
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released as v2.13.0. @vorticalbox hopefully your problem will be resolved.
Fixes are comming in next couple of days in 2.12.0 release