1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compare Date and show the difference

Discussion in 'C' started by mrexp21, May 21, 2012.

  1. mrexp21

    mrexp21 New Member

    Joined:
    May 21, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have a file, 'date-list.txt' which has date in it. For example , 20 May 2012 .

    Now I want to compare this date with current system date and show the difference in days .

    How can i compare dates and shows difference in days in C++.?

    Im really a c++ beginner . So , if possible , please show and guide me with codes . Thanks in advanced .
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    What OS and compiler are you using?
     

Share This Page