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. Disply week-number

Disply week-number

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

    Hello Can you please help me with the code after the user selected the date for the calender,the date will be displayed in the DateText-Box.I want the week number to be displyed automatically in the week-numberTextbox,after the user selected the date in the calender..... You send me this code ,and when I try it doesn't work,please help me,with the code,and if possible can you please explain it to me. In the Calendar1_SelectionChanged event use the following.... System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar; WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString(); Thank you. oga m

    G 1 Reply Last reply
    0
    • O Oga M

      Hello Can you please help me with the code after the user selected the date for the calender,the date will be displayed in the DateText-Box.I want the week number to be displyed automatically in the week-numberTextbox,after the user selected the date in the calender..... You send me this code ,and when I try it doesn't work,please help me,with the code,and if possible can you please explain it to me. In the Calendar1_SelectionChanged event use the following.... System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar; WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString(); Thank you. oga m

      G Offline
      G Offline
      gvishu
      wrote on last edited by
      #2

      Try the following link it seems usefult to you. http://www.codeproject.com/csharp/GregToISO.asp?df=100&forumid=4527&exp=0&select=934152[^]

      dharmender

      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