repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
date-fns-utc
/
startOfDay.ts
blob
d69149bcf79be075bc352ed40b038c2196e50805
1
const startOfDay = (date: Date) => {
2
const result = new Date(+date);
3
result.setUTCHours(0, 0, 0, 0);
4
return result;
5
};
6
7
export default startOfDay;