Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / date-fns-utc / startOfDay.ts
blobd69149bcf79be075bc352ed40b038c2196e50805
1 const startOfDay = (date: Date) => {
2     const result = new Date(+date);
3     result.setUTCHours(0, 0, 0, 0);
4     return result;
5 };
7 export default startOfDay;