Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js

moment().format('YYYY-MM-DD');// FECHA DE ACTUAL: 2022-12-04
moment().format('DD-MM-YYYY');// FECHA DE ACTUAL: 04-12-2022
moment('2022-12-12').add(10, 'days').format('DD-MM-YYYY');//SUMA 10 DIAS: 22-12-2022
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #js
ADD COMMENT
Topic
Name
6+1 =