question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

isDate/isValidDate returns false when it should be true

See original GitHub issue

Valid 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

https://repl.it/@vorticalbox/GoldenrodLuxuriousValue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
char0ncommented, Dec 8, 2018

Released as v2.13.0. @vorticalbox hopefully your problem will be resolved.

1reaction
char0ncommented, Oct 28, 2018

Fixes are comming in next couple of days in 2.12.0 release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found