Thread: some help needed.... again

  1. #1

    some help needed.... again

    Currently i am making some sort of home work diary. But i want to display current DATE only no time just date i tried searching on this board but it only returned stuff i had no clue about.

    Is there a way to display each thing of the date: 04/12/02 seperatly so say int day is 04 etc??

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    sure. How to do it is the tricky part. Depends where you are getting your information (user, internal systems clock, etc.) and the exact date format you want. To get the leading zero you use the fill left flag in iomanip with a field width of 2 (setwidth is also an ostream manipulator in iomanip) or you could devise your own fill left algorithm.

  3. #3
    just from the windows clock nothing to fancy
    and then it needs to put the day of the month in an int day and month in int month etc..

    Thank you for your help
    Dev C++
    Win XP/2k/98

    I DO NOT TAKE CLASSES I DONT GET HOMEWORK THIS IS NOT A HOMEWORK QUESTION!!!

    He's lean he's keen... He's the spank machine!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. lock needed in this scenario?
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-25-2008, 07:22 AM
  4. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM
  5. semi-colon - where is it needed
    By kes103 in forum C++ Programming
    Replies: 8
    Last Post: 09-12-2003, 05:24 PM