i have a problem for time span calculation.
can u please tell me how to do the following problem.
The program is required to read data from a text file.FOr each record in the file calculate the time elapsed (in years and days) between the start and end dates,and display the information.If the end date is not specified,the time elapsed to the present day must be displayed.
If either date is not valid or if the end date is before the start date message "ERROR" must be displayed.
consider the leap year.
the earliest date is 1st January 1900 and the latest 31st Dec 2020
Please help me i'm just 18yrs old n confused..its urgent please..
can u please tell me how to do the following problem.
The program is required to read data from a text file.FOr each record in the file calculate the time elapsed (in years and days) between the start and end dates,and display the information.If the end date is not specified,the time elapsed to the present day must be displayed.
If either date is not valid or if the end date is before the start date message "ERROR" must be displayed.
consider the leap year.
the earliest date is 1st January 1900 and the latest 31st Dec 2020
Please help me i'm just 18yrs old n confused..its urgent please..