Moment is a legacy project in maintenance mode. Consider using libraries that are actively supported, e.g. dayjs.