Validate a gregorian date
// `m`: the month (zero-based index)
// `d`: the day
// `y`: the year
const isValidDate = (m, d, y) => 0 <= m && m <= 11 && 0 < y && y < 32768 && 0 < d && d <= (new Date(y, m, 0)).getDate();
Also in JavaScript:
- npm nodemon -v global
- adjust() js
- <!DOCTYPE html> <!--[if IE 9]> <html lang="" class="js ie9 ... www.tork.cz › product-list www.tork.cz › product-list Cached addEventListener(e,a,!1)})}l(c)}},{}],3:[function(e,n,t){function r(e,n){if(!i)return!1 ... typeof window.performance
- javascript are arrays equal
- javascript console group
- javascript pop object from array
- mongoose collection relation
- generate query string from urlsearchparams
- trigger a click on page load jquery
- mometjs
- vscode ejs formatter
- Find parent and child from array javascript
- js remove specific css property
- jquery remove class
- firebase angular send notification to by tocken
- how to setstate in parent in child component in react native
- installing vue router & implementation
- null coalescing on nested object js
- javascript getdate
- get last element in array javascript
- javascript math ceiling function
- socket io query
- javascript date timezone
- js how to convert vh to pixel