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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. DateTimePicker ? [modified]

DateTimePicker ? [modified]

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
4 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.
  • G Offline
    G Offline
    Golden Jing
    wrote on last edited by
    #1

    I want to use DateTimePicker. when i click on its, i want only show Month and Year not show day. After i select Month and Year DateTimePicker will show "04/2008" Can we do it ? if can so how ?

    VB.Net

    modified on Thursday, April 24, 2008 11:24 PM

    V 1 Reply Last reply
    0
    • G Golden Jing

      I want to use DateTimePicker. when i click on its, i want only show Month and Year not show day. After i select Month and Year DateTimePicker will show "04/2008" Can we do it ? if can so how ?

      VB.Net

      modified on Thursday, April 24, 2008 11:24 PM

      V Offline
      V Offline
      V 2
      wrote on last edited by
      #2

      :zzz: I don't know why u want to do it?? Anyways u can try this Set the CustomFormat Property to "MM\yyyy" n then Format Property to CustomFormat then it will show only month and year not day Hope it will help u if not then feel free n ask again :rolleyes:

      The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

      G 1 Reply Last reply
      0
      • V V 2

        :zzz: I don't know why u want to do it?? Anyways u can try this Set the CustomFormat Property to "MM\yyyy" n then Format Property to CustomFormat then it will show only month and year not day Hope it will help u if not then feel free n ask again :rolleyes:

        The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

        G Offline
        G Offline
        Golden Jing
        wrote on last edited by
        #3

        Yes i done it ready ? but it just show in DateTimePicker. i want when we click on DateTimePicker no need to show the day.

        VB.Net

        L 1 Reply Last reply
        0
        • G Golden Jing

          Yes i done it ready ? but it just show in DateTimePicker. i want when we click on DateTimePicker no need to show the day.

          VB.Net

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

          Do you want to show it in a Textbox or anywhere else? Then the code can be: Textbox1.Text=Format(DateTimePicker1.Value,"MM/yyyy") I hope it will be fine.

          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