Getting date from computer

This is a discussion on Getting date from computer within the C++ Programming forums, part of the General Programming Boards category; Dear all, i would like to ask if there is why to get the date from my computer by programming ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    Getting date from computer

    Dear all,

    i would like to ask if there is why to get the date from my computer by programming and then compare with the date i have read in a txt file through programming.

    i think i can handle the comparision but i dun know how to get the date.....and what will be the format is.

    thank you for helping.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    can somebody help me more about this?

    i have a little idea of time.h......but how can i compare with the string, which is a date in a *.txt file?

    and how to convert the date to string?

    please help~

  3. #3
    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]

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    how to get the tm_mday?

    hi there,

    from the FAQ, there are several tm members which are int that represents the day, month of the date, how can i get those int for use??

    thank you for helping.

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 34
    Last Post: 02-26-2006, 12:16 PM
  2. CDate Class - handle date manipulation simply
    By LuckY in forum C++ Programming
    Replies: 5
    Last Post: 07-16-2003, 08:35 AM
  3. Problems shutting off computer
    By frenchfry164 in forum Tech Board
    Replies: 9
    Last Post: 04-22-2003, 06:19 PM
  4. Which distro should I run on my old computer?
    By joshdick in forum Tech Board
    Replies: 5
    Last Post: 04-09-2003, 01:37 AM
  5. Computer engineering - programming.
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 07-15-2002, 02:37 PM

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