Validator.js: isDate()

Created on 5 Oct 2019  路  15Comments  路  Source: validatorjs/validator.js

I noticed there is no validator such as isDate() . It was removed in previous version. It would be handy to have a validator that checks date only unlike the datestring.
For example, 2018/08/09 , 1988-07-18

pr-raised 馃檵鈥嶁檪锔廸eature-request

Most helpful comment

@artorias111 -- I don't think anyone else is working on it, please go ahead.

/cc. @chriso -- any history lesson on why isDate was deprecated?

All 15 comments

I think there was a reason this was removed, we'll need to check the archives...

@profnandaa It would be nice to have a validator for a simple use case as i mentioned above

Sure, please make a PR and we could pick up from there. I don't want to be blocking. Also check isISO8601(str) while doing that.

/cc. @chriso

I will look also on some archived PRs that had previously addressed the issue of isDate()

I would like to work on this issue as a part of my hacktoberfest contributions. If this is still being investigated I can move on to another.

You could skip this one for now and pick another.

./na

Sent from a tiny device while on the move.

Hey! I can work on this issue if no one else is working on it right now.

@artorias111 -- I don't think anyone else is working on it, please go ahead.

/cc. @chriso -- any history lesson on why isDate was deprecated?

please have a look at the PR, I am in need of this implementation thought of doing it let me know if any changes are needed

thanks!

Is the isDate() validator now available to use? I am needing this validation for a project I am currently working on.

@rkoziel -- currently in review #1270

Is there an ETA on when this may be available?

@rkoziel -- best bet, (end of) April release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mfbx9da4 picture mfbx9da4  路  4Comments

jaxkodex picture jaxkodex  路  3Comments

rathboma picture rathboma  路  4Comments

IOAyman picture IOAyman  路  4Comments

philfreo picture philfreo  路  3Comments