ASP - Time and Tables

Results 1 to 2 of 2

Thread: ASP - Time and Tables

  1. #1
    Join Date
    Dec 1969

    Default ASP - Time and Tables

    Good morning.<BR><BR>I would like to know if it is possible to populate a table with time increments based around two fields in a database.<BR><BR>e.g.<BR>Field 1 - has 8:00 in it<BR>Field 1 - has 17:00 in it.<BR><BR>What I would like to do is then take these two field contents and populate a table on a web page, but in 0:30 minute slots.<BR><BR>So that the table would look similar to the one below.<BR>Time<BR>08:00<BR>08:30<BR>09:00<BR>09:30 etc.<BR><BR>I am ok with getting the two field contents, but cannot get them into the allotted time periods.<BR><BR>Any help would be much appreciated.<BR><BR>Gazzer

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP - Time and Tables

    You probably want to investigate the dateAdd() function in VBScript - click the VBScript reference on the left. You could take the two times and simply increment the first by adding on 30 minutes until you reach the second...<BR><BR>Crraig.

Posting Permissions

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