There’s a particular date “2025-08-01” which is throwing a RangeError: Invalid time value
when being used in the date-fns package. Any clue around why this might be happening?
const dfs = require('date-fns');
new Date("2025-08-01") // works
dfs.format("2025-08-01", 'MM-yyyy'); // throws RangeError: Invalid time value