Please help me to calculate the number of days between 2 given dates.Please note that The code should not use any date or calendar classes provided by any library.
Input will be via a command line interface
DateTool fromDate toDate
e.g. DateTool 15/03/2007 31/03/2007
Output should be to the console:
e.g. Total number of days difference = 16.
The code validate that both dates are valid.
The code should accept date formats in dd/mm/yy and dd/mm/yyyy formats.
The number of days between the dates should be correct.