Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

calcular idade jquery

function calcAge(dateString) {
  var birthday = +new Date(dateString);
  return ~~((Date.now() - birthday) / (31557600000));
}

console.log(calcAge("Thu Dec 17 1995 00:51:54 GMT-0300 (BRT)"));
 Executar
Comment

PREVIOUS NEXT
Code Example
Javascript :: regexp look for letter followed by 3 digits 
Javascript :: regex mobile 
Javascript :: formatting time for ical export 
Javascript :: javascript enum includes value 
Javascript :: uninstall spicetify 
Javascript :: convert bytes to kb or mb javascript 
Javascript :: cefsharp transparent background 
Javascript :: javascript change favicon dynamicly 
Javascript :: v-if disable vue 
Javascript :: row no datatable 
Javascript :: jquery to javascript converter online free 
Javascript :: capitalize last letter javascript 
Javascript :: autoplay images in react js 
Javascript :: forming a magic sqare hackerank in javascript 
Javascript :: temporal date api 
Javascript :: nodejs version abfragen 
Javascript :: onclick a hyperlink and display the id of clicked hyperlink js 
Javascript :: tthree js npm 
Javascript :: write "hello world" 
Javascript :: ajax each 
Javascript :: convert string to file angular 
Javascript :: React Router rendering blank pages for all components 
Javascript :: ziggy vue 3 
Javascript :: AngularJS w/Prerender 404 error on home page 
Javascript :: Angular.js : recursive call to an $mdDialog controller 
Javascript :: Using useEffect with async 
Javascript :: Browser globals 
Javascript :: generar numero aleatorio en un rango 
Javascript :: ansel array sort 
Javascript :: slow down an action or event 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =