dateadd( )

Results 1 to 2 of 2

Thread: dateadd( )

  1. #1
    Join Date
    Dec 1969

    Default dateadd( )

    how do i add one day to a date using dateadd()function<BR>until a specified end date<BR><BR>say <BR>start date=01/19/02<BR>end date=01/23/02<BR><BR>how do i store in the database dates that will increament by one day from 19/1 and until 23/1<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: dateadd( )

    In VB, you can use a For Loop with dates. Don&#039;t know if true in VBScript, but you can try.<BR><BR>startDate=CDate(&#039;1/19/02&#039;)<BR>endDate=CDate(&#039;1/23/02&#039;)<BR><BR>For nowDate = startDate to endDate<BR> &#039;code here (use nowDate)<BR>Next

Posting Permissions

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