SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member stfarm's Avatar
    Join Date
    Feb 2005
    Location
    Roswell, GA
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question [RESOLVED] Add 13 weeks to javascript date

    Hi all,

    how can I add 13 weeks to a javascript date? Here is what I have so far...

    Code:
    var currentDate = new Date()
        var day = currentDate.getDate()
        var month = currentDate.getMonth()
        var year = currentDate.getFullYear()
    Thank you for your help.

    Steve


  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    var currentDate = new Date();
    currentDate.setDate(currentDate.getDate()+91);


  3. #3
    SitePoint Member stfarm's Avatar
    Join Date
    Feb 2005
    Location
    Roswell, GA
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This must have been the fastest reply I ever received.

    Thank you so very much, that works great!!

    Steve


  4. #4
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your welcome.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •