Adding Date in a program

This is a discussion on Adding Date in a program within the C++ Programming forums, part of the General Programming Boards category; I was trying to design an Age calculator. I wanted to know is there a way to set the specific ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    5

    Adding Date in a program

    I was trying to design an Age calculator.
    I wanted to know is there a way to set the specific date in the computer [only the date, not month and year] for the value of a variable?
    I would use it to calculate the age to the exact days.
    Thanks

  2. #2
    Registered User \007's Avatar
    Join Date
    Dec 2010
    Posts
    179

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    5
    I had seen the page. I was looking for Date and only date. For instance, Today is 10/04/2011, So it puts the value of 10 in place of integer cur_date.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 04-08-2009, 04:23 PM
  2. Adding functions to a program
    By Finchie_88 in forum Windows Programming
    Replies: 9
    Last Post: 03-04-2005, 10:10 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM
  4. Syntax for adding a program to autoexec.bat...
    By Sebastiani in forum C Programming
    Replies: 5
    Last Post: 06-18-2002, 12:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21