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 can i split this "6/30/2008" to get only

how can i split this "6/30/2008" to get only

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • M Offline
    M Offline
    Meax
    wrote on last edited by
    #1

    "2008"

    A A S 3 Replies Last reply
    0
    • M Meax

      "2008"

      A Offline
      A Offline
      Arindam Tewary
      wrote on last edited by
      #2

      use "split" function ....

      Thanks, Arindam D Tewary

      1 Reply Last reply
      0
      • M Meax

        "2008"

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        string s="6/30/2008"; string [] s1= s.split('/'); console.writeline(s1[2].ToString());

        Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

        1 Reply Last reply
        0
        • M Meax

          "2008"

          S Offline
          S Offline
          SathyaSiva
          wrote on last edited by
          #4

          DateTime m = new DateTime(2008,03,21); int s = m.Year;

          Sathya

          M 1 Reply Last reply
          0
          • S SathyaSiva

            DateTime m = new DateTime(2008,03,21); int s = m.Year;

            Sathya

            M Offline
            M Offline
            Meax
            wrote on last edited by
            #5

            thanks

            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