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. C / C++ / MFC
  4. DateTimePicker

DateTimePicker

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • S Offline
    S Offline
    si_69
    wrote on last edited by
    #1

    Hi I am using a DateTimePicker control, using the Time format Is there anyway i can get the time to display without showing the seconds ? thanks Simon

    J 1 Reply Last reply
    0
    • S si_69

      Hi I am using a DateTimePicker control, using the Time format Is there anyway i can get the time to display without showing the seconds ? thanks Simon

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      I believe there is a way to set the format for the display of the control.  You can just specify a format that does not show the seconds, perhaps?    Have a good look at the messages the control supports to see.    Note that the control's internal time value will still have a seconds component...    Peace!

      -=- James
      Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      See DeleteFXPFiles

      B 1 Reply Last reply
      0
      • J James R Twine

        I believe there is a way to set the format for the display of the control.  You can just specify a format that does not show the seconds, perhaps?    Have a good look at the messages the control supports to see.    Note that the control's internal time value will still have a seconds component...    Peace!

        -=- James
        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        See DeleteFXPFiles

        B Offline
        B Offline
        bonkers
        wrote on last edited by
        #3

        m_TimePicker.SetFormat(..... etc);

        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