React Moment Calendar Times

moment().subtract(10, 'days').calendar(); // 05/01/2022
moment().subtract(6, 'days').calendar();  // Last Thursday at 3:33 PM
moment().subtract(3, 'days').calendar();  // Last Sunday at 3:33 PM
moment().subtract(1, 'days').calendar();  // Yesterday at 3:33 PM
moment().calendar();                      // Today at 3:33 PM
moment().add(1, 'days').calendar();       // Tomorrow at 3:33 PM
moment().add(3, 'days').calendar();       // Saturday at 3:33 PM
moment().add(10, 'days').calendar();      // 05/21/2022
Robert Truter