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. Web Development
  3. ASP.NET
  4. How to set calender control default year when it loaded

How to set calender control default year when it loaded

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
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.
  • R Offline
    R Offline
    rahul net11
    wrote on last edited by
    #1

    Hi I want to set calender control default year.i.e When page is loaded calender control should displayed default year as 1983 instead of 2007.How can i do this. Thanks. Rahul.

    df

    P S 2 Replies Last reply
    0
    • R rahul net11

      Hi I want to set calender control default year.i.e When page is loaded calender control should displayed default year as 1983 instead of 2007.How can i do this. Thanks. Rahul.

      df

      P Offline
      P Offline
      PrakashBhaskar
      wrote on last edited by
      #2

      Calendar1.VisibleDate = New DateTime(year, month, day) following is example Calendar1.VisibleDate = New DateTime(1983, 10, 23) i think ur problem has solved

      Thanks Warm Regards Prakash-B

      R 1 Reply Last reply
      0
      • R rahul net11

        Hi I want to set calender control default year.i.e When page is loaded calender control should displayed default year as 1983 instead of 2007.How can i do this. Thanks. Rahul.

        df

        S Offline
        S Offline
        Saifi Hasan
        wrote on last edited by
        #3

        use SelectedDate property to assign date

        Nobody is perfect i'm Nobody

        1 Reply Last reply
        0
        • P PrakashBhaskar

          Calendar1.VisibleDate = New DateTime(year, month, day) following is example Calendar1.VisibleDate = New DateTime(1983, 10, 23) i think ur problem has solved

          Thanks Warm Regards Prakash-B

          R Offline
          R Offline
          rahul net11
          wrote on last edited by
          #4

          Thanks. Its working.My problem is solved.

          df

          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