I'm trying to valid time with moment.js
, but my database file has some wrong data. When I run this code:
const moment = require('moment');
console.log(moment('19/07/9130','hh:mm').isValid());
It returns true
, I'm doing something wrong??
via thur
No comments:
Post a Comment