ctime - current date

This is a discussion on ctime - current date within the C++ Programming forums, part of the General Programming Boards category; hello... how do i get the current date using the <ctime> header? thanks Raz...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    19

    ctime - current date

    hello...

    how do i get the current date using the <ctime> header?


    thanks

    Raz

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    104
    Ilia Yordanov,
    http://www.cpp-home.com ; C++ Resources

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    19
    yea i kno the time.h functions.. i just wasnt sure on the ctime ones..

    i know its harder... but if anyone has a chance.. can you help me out? i need the day, month and year... not the time..

    thanks a bunch

    Rza

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    43
    I don't think there is a difference between time.h & ctime
    See both headers in your compiler. In MS VC++ 6.0 there is no difference

  5. #5
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Do you want the date as a string, or as separate integers for day, month, and year?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Immediate programming help! Please!
    By xMEGANx in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2008, 11:52 AM
  2. Problem with simple case statements
    By shoobsie in forum C Programming
    Replies: 2
    Last Post: 05-08-2006, 08:39 AM
  3. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 09:16 AM
  4. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  5. How do I get the current date in my code?
    By FromHolland in forum C++ Programming
    Replies: 3
    Last Post: 04-08-2003, 01:37 PM

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