Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by www.developpez.net #
 
PREVIOUS NEXT
Tagged: #js #date #enlever #jour
ADD COMMENT
Topic
Name
2+3 =