build a Table

Results 1 to 2 of 2

Thread: build a Table

  1. #1
    Join Date
    Dec 1969

    Default build a Table

    How can i create a table using User input dates(User Will enter two dates like from 04/01/2003 to 04/30/2003) I need to create a table each row with one day like<BR>Row1 04/01/2003 <BR>Row2 04/02/2003<BR>.....<BR>Row30 04/30/2003<BR><BR>like this UNTIL it meets the "To" date which is 04/30/2003.<BR><BR>MyFr = Request.Form("txtDtFrom")<BR>MyTo = Request.Form("txtDtTo")<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default So easy it will scare you...

    &#060;%<BR>MyFr = CDATE( Request("txtDtFrom") )<BR>MyTo = CDATE( Request("txtDtTo") )<BR>For MyDate = MyFr To MyTo<BR> Response.Write FormatDateTime( MyDate, vbShortDate ) & ""<BR>Next<BR>%&#062;<BR><BR>Yes, you really can use dates in a FOR loop.<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