79690763

Date: 2025-07-05 02:46:12
Score: 0.5
Natty:
Report link

Just discard time, no need to calculate timestamp:

let now = new Date();
let startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate());
let startOfYesterday = new Date(now.getFullYear(), now.getMonth(), now.getDate()-1);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SE12938683