Can anyone give me program to find difference between two dates?

P

Prafull Soni

hi
Can anyone give me program to find difference between two dates?

thanks

Prafull Soni
 
O

osmium

Prafull Soni said:
Can anyone give me program to find difference between two dates?

This is a common student assignment and the student will not learn what was
intended by using a routine someone else wrote. Use your knowledge of the
date system to answer the question, this makes it a particularly good
exercise because the question is easily understood but producing a program
that does it is a bit time consuming.

In the event you are not a student, this should help:

http://c.snippets.org/snip_lister.php?fname=jdn_l.c

Use of those routines by a student indicates either a very bright student or
a cheater.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top