Answers for "js moment substract is changing the whole moment values"

2

moment js subtract years

let min_date = moment().subtract(18, 'years');
Posted by: Guest on November-19-2020
0

get moment from another moment

const yearBefore = this.state.startDate.clone().subtract(1, 'years');
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language