adding days to date()

Results 1 to 3 of 3

Thread: adding days to date()

  1. #1
    Join Date
    Dec 1969

    Default adding days to date()

    Hi,<BR>I want to take today&#039;s date (which I get using date()) and automatically add two weeks. Is there some kind of function or easy way to do this, or do I need to split up the dd/mm/yyyy and manualy figure out what date it will be 2 weeks from now?<BR>Thanks,<BR>Trevor

  2. #2
    Join Date
    Dec 1969

    Default R&D DateAdd()


  3. #3
    Join Date
    Dec 1969

    Default ...But the easier way:

    &#060;%<BR>...<BR>theDate = DateSerial( someYear, someMonth, someDay )<BR><BR>twoWeeksLater = theDate + 14<BR>...<BR>%&#062;<BR><BR>Yeah, you really can add and subtract days from Date/Time values that simply.<BR><BR>See ASPFAQ # 189.<BR><BR>

Posting Permissions

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