some help needed.... again

This is a discussion on some help needed.... again within the C++ Programming forums, part of the General Programming Boards category; Currently i am making some sort of home work diary. But i want to display current DATE only no time ...

  1. #1
    Spanky devour89's Avatar
    Join Date
    Nov 2002
    Posts
    148

    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
    Spanky devour89's Avatar
    Join Date
    Nov 2002
    Posts
    148
    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, 10: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, 12:55 PM
  3. lock needed in this scenario?
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-25-2008, 08:22 AM
  4. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-01-2004, 12:24 AM
  5. semi-colon - where is it needed
    By kes103 in forum C++ Programming
    Replies: 8
    Last Post: 09-12-2003, 06:24 PM

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