Thread: store date in a variable

  1. #1
    Registered User actionbasti's Avatar
    Join Date
    Dec 2002
    Posts
    48

    store date in a variable

    I am tring to write a program that keeps track of the date evey time a new object has been created so that if i open the same object from file 2 days later, it will show that 2 days have passed since its creation.

    So I need to store the date in a C++ console application. probably in a .dat file or so. can you help me how to do that ?

    thanks for your help.

    action

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User actionbasti's Avatar
    Join Date
    Dec 2002
    Posts
    48
    thank you... i made it work


    action..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. casting the system exstracted date into seperate ints
    By bazzano in forum C Programming
    Replies: 1
    Last Post: 08-30-2005, 12:17 AM
  2. How do i store today's date in variable?
    By Brain Cell in forum C Programming
    Replies: 12
    Last Post: 08-23-2004, 06:24 AM
  3. float/double variable storage and precision
    By cjschw in forum C++ Programming
    Replies: 4
    Last Post: 07-28-2003, 06:23 PM
  4. Beginner question
    By Tride in forum C Programming
    Replies: 30
    Last Post: 05-24-2003, 08:36 AM
  5. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 01:26 AM