File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ Consider the following example with ranges of current week, month and year.
6666```
6767$scope.presets = [
6868 {
69- 'name': 'Week',
70- 'start': moment().startOf('week'),
71- 'end': moment().endOf('week'),
69+ 'name': 'This Week',
70+ 'start': moment().startOf('week').startOf('day') ,
71+ 'end': moment().endOf('week').endOf('day') ,
7272 }, {
73- 'name': 'Month',
74- 'start': moment().startOf('month'),
75- 'end': moment().endOf('month'),
73+ 'name': 'This Month',
74+ 'start': moment().startOf('month').startOf('day') ,
75+ 'end': moment().endOf('month').endOf('day') ,
7676 }, {
77- 'name': 'Year',
78- 'start': moment().startOf('year'),
79- 'end': moment().endOf('year'),
77+ 'name': 'This Year',
78+ 'start': moment().startOf('year').startOf('day') ,
79+ 'end': moment().endOf('year').endOf('day') ,
8080 }
8181];
8282```
You can’t perform that action at this time.
0 commit comments