Skip to content

Commit 5212370

Browse files
committed
Add solution #1360
1 parent d082c60 commit 5212370

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

solutions/1360-number-of-days-between-two-dates.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
*
66
* Write a program to count the number of days between two dates.
77
*
8-
* The two dates are given as strings, their format is `YYYY-MM-DD` as shown in the examples.
8+
* The two dates are given as strings, their format is `YYYY-MM-DD`
9+
* as shown in the examples.
910
*/
1011

1112
/**
1213
* @param {string} date1
1314
* @param {string} date2
1415
* @return {number}
1516
*/
16-
var daysBetweenDates = function(date1, date2) {
17+
var daysBetweenDates = function(date1, date2) {
1718
return Math.abs(new Date(date1) - new Date(date2)) / (24 * 60 * 60 * 1000);
18-
};
19+
};

0 commit comments

Comments
 (0)