Skip to content

Here is my algorithm that prints the difference of two given dates (in days). I use only the " GregorianCalendar " utility

Notifications You must be signed in to change notification settings

Tressos-Aristomenis/Find-the-difference-of-two-given-dates-in-days-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Find the difference of two given dates (in days) represented as Strings using ONLY " GregorianCalendar " utility.

No additional libraries needed. No additional parses needed. Just splitted the strings and separeted days, months and years.

INPUT : 2 dates looking like : dd-MM-yyyy. OUTPUT : How many days these dates differ.

For example : INPUT : String date1 = "1/1/2016" , String date2 = "1/1/2017". OUTPUT : Total days difference between 1-1-2016 and 1-1-2017 : 366.

About

Here is my algorithm that prints the difference of two given dates (in days). I use only the " GregorianCalendar " utility

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages