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. Visual Basic
  4. Set DateTimePicker date

Set DateTimePicker date

Scheduled Pinned Locked Moved Visual Basic
tutorial
7 Posts 5 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.
  • I Offline
    I Offline
    ivo75
    wrote on last edited by
    #1

    How to set DateTimePicker date one month later

    J L 2 Replies Last reply
    0
    • I ivo75

      How to set DateTimePicker date one month later

      J Offline
      J Offline
      John M Bundy
      wrote on last edited by
      #2

      It depends on what you mean, one month later than what? If you mean one month from another DateTimePicker then

      Me.DateTimePicker2.Value = Me.DateTimePicker1.Value.AddMonths(1)

      If you mean from todays date then

      Me.DateTimePicker1.Value = Me.DateTimePicker1.Value.AddMonths(1)

      If that doesn't get you there, please be a little more specific. Thanks

      I 1 Reply Last reply
      0
      • I ivo75

        How to set DateTimePicker date one month later

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

        A wild, adventurous, and untested guess: dateTimePicker.Value=dateTimePicker.Value.AddMonths(1) :confused:

        Luc Pattyn


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        L 1 Reply Last reply
        0
        • J John M Bundy

          It depends on what you mean, one month later than what? If you mean one month from another DateTimePicker then

          Me.DateTimePicker2.Value = Me.DateTimePicker1.Value.AddMonths(1)

          If you mean from todays date then

          Me.DateTimePicker1.Value = Me.DateTimePicker1.Value.AddMonths(1)

          If that doesn't get you there, please be a little more specific. Thanks

          I Offline
          I Offline
          ivo75
          wrote on last edited by
          #4

          Thanks thats work

          1 Reply Last reply
          0
          • L Luc Pattyn

            A wild, adventurous, and untested guess: dateTimePicker.Value=dateTimePicker.Value.AddMonths(1) :confused:

            Luc Pattyn


            I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Luc Pattyn wrote:

            A wild, adventurous,

            Stop living dangerously!

            Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

            L 1 Reply Last reply
            0
            • L Lost User

              Luc Pattyn wrote:

              A wild, adventurous,

              Stop living dangerously!

              Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

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

              why? adding a meesage to the VB forum always is an adventure, you never know what the outcome will be. :laugh:

              Luc Pattyn


              I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


              D 1 Reply Last reply
              0
              • L Luc Pattyn

                why? adding a meesage to the VB forum always is an adventure, you never know what the outcome will be. :laugh:

                Luc Pattyn


                I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


                D Offline
                D Offline
                DaveAuld
                wrote on last edited by
                #7

                You don't have to go as far as adding a message........just visiting the VB Forum is a wild adventure, the savage beast that is a poorly asked question is always lurking in the shadows, just waiting to jump out, to be rapidly shot down by quick CG response :)

                Dave Who am I?: Web|Facebook|Twitter|LinkedIn|Bebo

                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