Thursday , 23 March 2017
Home » ISC Important Programs (page 6)

ISC Important Programs

Java Program for finding Difference between 2 Dates

Write a program to accept 2 dates in the string format dd/mm/yyyy and find the difference in days between the 2 dates. Example: INPUT: Date 1 : 20/12/2012 Date 2 : 11/02/2013 OUTPUT: Difference = 54 days The program should include the part for validating the inputs namely the date and the day on 1st January of that year.

Read More »