Moment des moments calendaires
moment().subtract(10, 'days').calendar(); // 04/29/2022
moment().subtract(6, 'days').calendar(); // Last Tuesday at 12:54 AM
moment().subtract(3, 'days').calendar(); // Last Friday at 12:54 AM
moment().subtract(1, 'days').calendar(); // Yesterday at 12:54 AM
moment().calendar(); // Today at 12:54 AM
moment().add(1, 'days').calendar(); // Tomorrow at 12:54 AM
moment().add(3, 'days').calendar(); // Thursday at 12:54 AM
moment().add(10, 'days').calendar(); // 05/19/2022
Mohammed Siddiqui