how to add or subtract a week from current date?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    how to add or subtract a week from current date?

    hi all..!
    i want to add or subtract dates from a particular date,
    for eg: date1="24-04-2007"
    by adding 7 i need the result like 01-05-2007, if there is any readymade function available in javascript? or how to do this?
    thanks in advance.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    See the 'Manipulate Dates' section on this page.

    Comment

    • nirmalsingh
      New Member
      • Sep 2006
      • 218

      #3
      its ok but its in system date format, i am in need of format mentioned above.

      Comment

      • iam_clint
        Recognized Expert Top Contributor
        • Jul 2006
        • 1207

        #4
        just change the format make life easier on yourself.

        Comment

        Working...