admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Number of days between two dates

Kopal Jaiswal
498 Posts

WAP to find the number of days between two given dates.

Example 1:

Input:

Date 1= "07-04-2020"

Date 2= "18-07-2020"

Output: 102 days

Example 2:

Input:

Date 1= "07-04-2005"

Date 2= "09-07-2020"

Output: 5572 days

 

 

 

Published By : Kopal Jaiswal
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin