Start Date and EndDate of a week in javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • techbytes
    New Member
    • May 2010
    • 36

    #1

    Start Date and EndDate of a week in javascript

    I have a text box which has the value of week no.

    Depending on the value of week no,i have to display the start and end date of that week in another text box.

    How to do it in JavaScript
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    You want for this month or what?

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      I guess you would have to query a server side language for that (e.g. PHP), since I’m not aware that JS processes week numbers anyhow.

      Comment

      • RamananKalirajan
        Contributor
        • Mar 2008
        • 608

        #4
        @ Dormilich,
        If it is for the current month means we can calculate via javascript itself. We have to write our own logic

        Thanks and Regards
        Ramanan Kalirajan

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          If it is for the current month means we can calculate via javascript itself.
          but that’s not what was asked.

          Comment

          • techbytes
            New Member
            • May 2010
            • 36

            #6
            hi,

            Its not for current month.If you give any weekno.,it should display the corresponding start & end date of that week.

            can give suggestion.

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              as I said, JavaScript can’t do that alone. you would need the help of a server-side language.

              Comment

              Working...