Answers for "js date enlever jour"

1

js date enlever jour

 
 let date = '20/10/2010'; // chaine
 let dateArray = date.split('/');// tableau jour, mois, année
 let dateObject = new Date(parseInt(dateArray[2]), parseInt(dateArray[1]) - 1, parseInt(dateArray[0])); // on créer notre objet date 
 
 console.log(dateObject.getDate());
 console.log(dateObject.getDate() - 10);
Posted by: Guest on May-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language