We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8030b0 commit 011fed0Copy full SHA for 011fed0
src/main/java/com/fishercoder/solutions/_1360.java
@@ -1,22 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 1360. Number of Days Between Two Dates
5
- *
6
- * Write a program to count the number of days between two dates.
7
- * The two dates are given as strings, their format is YYYY-MM-DD as shown in the examples.
8
9
- * Example 1:
10
- * Input: date1 = "2019-06-29", date2 = "2019-06-30"
11
- * Output: 1
12
13
- * Example 2:
14
- * Input: date1 = "2020-01-15", date2 = "2019-12-31"
15
- * Output: 15
16
17
- * Constraints:
18
- * The given dates are valid dates between the years 1971 and 2100.
19
- * */
20
public class _1360 {
21
public static class Solution1 {
22
public int daysBetweenDates(String date1, String date2) {
0 commit comments