make moment minus days and set time 0 code example Example: moment js subtract years let min_date = moment().subtract(18, 'years');