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. Displaying which month of the year

Displaying which month of the year

Scheduled Pinned Locked Moved Visual Basic
helptutorialannouncement
3 Posts 2 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.
  • C Offline
    C Offline
    cpod
    wrote on last edited by
    #1

    Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number. I have tried these line of code: Label1.text = System.DateTime.Today.Month.ToString and I have also tried Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year. Can anyone please help me... :confused: Thanks cPod....

    R 1 Reply Last reply
    0
    • C cpod

      Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number. I have tried these line of code: Label1.text = System.DateTime.Today.Month.ToString and I have also tried Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year. Can anyone please help me... :confused: Thanks cPod....

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Not sure if I understand you correctly but if Im right you just have to combine your two statements: Label1.Text = MonthName(DateTime.Today.Month)

      C 1 Reply Last reply
      0
      • R Robert Rohde

        Not sure if I understand you correctly but if Im right you just have to combine your two statements: Label1.Text = MonthName(DateTime.Today.Month)

        C Offline
        C Offline
        cpod
        wrote on last edited by
        #3

        Hey Robert thanks a lot man. I thought I had tried that but I guess I didn't... Thanks again....:) Thanks cPod....

        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