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. Web Development
  3. ASP.NET
  4. i need name of the month

i need name of the month

Scheduled Pinned Locked Moved ASP.NET
csharp
4 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    sooreeagt
    wrote on last edited by
    #1

    i need the name of the montt like march not 3 wat code i need to use in c#

    Suresh.R

    K S J 3 Replies Last reply
    0
    • S sooreeagt

      i need the name of the montt like march not 3 wat code i need to use in c#

      Suresh.R

      K Offline
      K Offline
      Kunal P
      wrote on last edited by
      #2

      for this u`ll need to format the date time string. Date Time Format Strings[^] hope it helps.

      Kunal

      1 Reply Last reply
      0
      • S sooreeagt

        i need the name of the montt like march not 3 wat code i need to use in c#

        Suresh.R

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Never worked for it but one idea is if dateTIme object method does not return any string then declare string array like string[] str ={ "January", "February", "March", "April" }; now you can get month by simply str[DateTime.Now.Month-1]; -1 is important :)

        Thanks and Regards Sandeep If you want something you never had, do something you have never done!

        1 Reply Last reply
        0
        • S sooreeagt

          i need the name of the montt like march not 3 wat code i need to use in c#

          Suresh.R

          J Offline
          J Offline
          joon vh
          wrote on last edited by
          #4

          CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Today.Month)


          Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

          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