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. C#
  4. getting day of the date

getting day of the date

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
3 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.
  • S Offline
    S Offline
    SR Ranjini
    wrote on last edited by
    #1

    How to get the day of the given date in c#.net. Is it possible to add 30 days from the given date which omits the saturdays and sundays? Help me. SR Ranjini

    R J 2 Replies Last reply
    0
    • S SR Ranjini

      How to get the day of the given date in c#.net. Is it possible to add 30 days from the given date which omits the saturdays and sundays? Help me. SR Ranjini

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      try out following codes DateTime drt = new DateTime(2004,04,21); MessageBox.Show(drt.DayOfWeek.ToString()); rahul

      1 Reply Last reply
      0
      • S SR Ranjini

        How to get the day of the given date in c#.net. Is it possible to add 30 days from the given date which omits the saturdays and sundays? Help me. SR Ranjini

        J Offline
        J Offline
        Jesal Rana
        wrote on last edited by
        #3

        Hi, U right the code below, .......(Put the TextBox in the Web Form) TextBox1.Text = DateTime.now; // For the current Date & Time // I don't know how to omit sat. & sun days from the month. Regards, Jesal Rana OK

        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