add 1 year to current date javascript
// [SOLVED] var date = new Date(year + 1, month, day);
$('#membership_start').on('dp.change', function(e){
console.log(e.date);
var year = new Date(e.date).getFullYear();
var month = new Date(e.date).getMonth();
var day = new Date(e.date).getDate();
var date = new Date(year + 1, month, day);
$('#membership_end').data("DateTimePicker").date(date);
});
Also in JavaScript:
- how to split two digit number in javascript
- jest Cross origin http://localhost forbidden
- javascript change frame background
- javascript falsy values
- WHAT IS NODE IN DOM
- map a square to a circle
- ajax error
- js select keys from object
- console log update status bar
- create csv file javascript
- mongoose save return id
- JavaScript after
- delete backspace on string js
- node js console log
- remove floating point javascript
- js date minus 18 years
- javascript string contains character
- sort array of objects javascript by value
- spreadjs autofit column with minimum
- how to add button react native app.js
- how to add oAuth google signin in react native app
- jquery add text to textbox
- high level components react
- react router go rprevious page