Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. DateTime

DateTime

Scheduled Pinned Locked Moved Windows API
questionhelp
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    ksaw123
    wrote on last edited by
    #1

    I want to get the system dateTime. So that I could get the year alone, the month alone, the day alone, the hour alone, the minute alone and the second alone. Then convert or Parse each one to int and put them inside this Datetime. DateTime dt = new DateTime(int year, int month, int day, int hour, int minute, int second); How can I do this please? Thankx for your help a lot...

    L P 2 Replies Last reply
    0
    • K ksaw123

      I want to get the system dateTime. So that I could get the year alone, the month alone, the day alone, the hour alone, the minute alone and the second alone. Then convert or Parse each one to int and put them inside this Datetime. DateTime dt = new DateTime(int year, int month, int day, int hour, int minute, int second); How can I do this please? Thankx for your help a lot...

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Isn't that what DateTime.Now is returning ? I fail to see the Vista connection... :)

      Luc Pattyn


      try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


      K realJSOPR 2 Replies Last reply
      0
      • L Luc Pattyn

        Isn't that what DateTime.Now is returning ? I fail to see the Vista connection... :)

        Luc Pattyn


        try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


        K Offline
        K Offline
        ksaw123
        wrote on last edited by
        #3

        First of all thank you for replying. From these variables I want just the year, month and time without the other variables.So that I could insert these variables from the system date and the othher variables will be inserted by me. I will be glade to be answered.

        L 1 Reply Last reply
        0
        • K ksaw123

          First of all thank you for replying. From these variables I want just the year, month and time without the other variables.So that I could insert these variables from the system date and the othher variables will be inserted by me. I will be glade to be answered.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          So what you got to do is read the documentation on DateTime and everything will be revealed. :)

          Luc Pattyn


          try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


          K 1 Reply Last reply
          0
          • L Luc Pattyn

            So what you got to do is read the documentation on DateTime and everything will be revealed. :)

            Luc Pattyn


            try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


            K Offline
            K Offline
            ksaw123
            wrote on last edited by
            #5

            Thank you again for your help, but one more question where can I find the documentation to install it because I don't have it. My best regards...

            L 1 Reply Last reply
            0
            • K ksaw123

              I want to get the system dateTime. So that I could get the year alone, the month alone, the day alone, the hour alone, the minute alone and the second alone. Then convert or Parse each one to int and put them inside this Datetime. DateTime dt = new DateTime(int year, int month, int day, int hour, int minute, int second); How can I do this please? Thankx for your help a lot...

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              This is a Windows Vista specific forum. What does your question have to do with it? Post question in correct forum, in this case, C# forum...

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer

              1 Reply Last reply
              0
              • K ksaw123

                Thank you again for your help, but one more question where can I find the documentation to install it because I don't have it. My best regards...

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                Hi, MSDN documentation is part of the Visual Studio distribution; IIRC you must check one more checkbox in order to get it included in your installation and it is available at http://msdn2.microsoft.com[^] :)

                Luc Pattyn


                try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


                1 Reply Last reply
                0
                • L Luc Pattyn

                  Isn't that what DateTime.Now is returning ? I fail to see the Vista connection... :)

                  Luc Pattyn


                  try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


                  realJSOPR Online
                  realJSOPR Online
                  realJSOP
                  wrote on last edited by
                  #8

                  Even if there is a vista connection, programming questions belong in the programming forums.

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups