Horje
check if a date is more than 18 years javascript Code Example
check if a date is more than 18 years javascript
function isOverEighteen(year, month, day) {
  var now = parseInt(new Date().toISOString().slice(0, 10).replace(/-/g, ''));
  var dob = year * 10000 + month * 100 + day * 1; // Coerces strings to integers

  return now - dob > 180000;
}




Javascript

Related
javascript download image Code Example javascript download image Code Example
js select div Code Example js select div Code Example
day array in javascript Code Example day array in javascript Code Example
move first element to last javascript Code Example move first element to last javascript Code Example
angular animation scale width and height Code Example angular animation scale width and height Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7