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. Date control in Dropdownlist

Date control in Dropdownlist

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 4 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.
  • D Offline
    D Offline
    Dineshrai2009
    wrote on last edited by
    #1

    Hi, I want to populate Month like Nov-2010,Dec-2010 etc.. in DropDownList. It will show current financial year and so on.... Can any one help me regarding this. Thanks...

    B S 2 Replies Last reply
    0
    • D Dineshrai2009

      Hi, I want to populate Month like Nov-2010,Dec-2010 etc.. in DropDownList. It will show current financial year and so on.... Can any one help me regarding this. Thanks...

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      I dont know, Might be some third party control can provide you month in this format. You your self can create the month like this and bind it to the dwopdown, Or you can hardcode it in a file and bind it from there when require.

      Cheers!! Brij My Blog
      Check my latest Article :ViewState - Various ways to reduce performance overhead

      D 1 Reply Last reply
      0
      • B Brij

        I dont know, Might be some third party control can provide you month in this format. You your self can create the month like this and bind it to the dwopdown, Or you can hardcode it in a file and bind it from there when require.

        Cheers!! Brij My Blog
        Check my latest Article :ViewState - Various ways to reduce performance overhead

        D Offline
        D Offline
        Dineshrai2009
        wrote on last edited by
        #3

        Thanks for reply. But, I don't want to hardcodeit. I simply want to read system date.

        1 Reply Last reply
        0
        • D Dineshrai2009

          Hi, I want to populate Month like Nov-2010,Dec-2010 etc.. in DropDownList. It will show current financial year and so on.... Can any one help me regarding this. Thanks...

          S Offline
          S Offline
          Sneha Bisht
          wrote on last edited by
          #4

          TRy like this in Database select convert(varchar(3),datename(mm,getdate()),24) + '--' + convert(varchar(4),datename(yy,getdate()),24)

          R 1 Reply Last reply
          0
          • S Sneha Bisht

            TRy like this in Database select convert(varchar(3),datename(mm,getdate()),24) + '--' + convert(varchar(4),datename(yy,getdate()),24)

            R Offline
            R Offline
            Ravi Sant
            wrote on last edited by
            #5

            :thumbsup: 5

            ♫ 99 little bugs in the code, 99 bugs in the code We fix a bug, compile it again 101 little bugs in the code ♫

            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