dates in querystrings

Results 1 to 3 of 3

Thread: dates in querystrings

  1. #1
    Join Date
    Dec 1969

    Default dates in querystrings

    Here is my querystring data:<BR>?equipID=18&startDate=31/01/2002%2008:00:00&endDate=3/02/2002%2008:30:00<BR>Yet the resulting page insists that request.querystring("startDate") and endDate do not exist. They are both destined to be inserted into a date/time field in an access db. Any idea why a response.write of the 2 vars returns "" ?<BR>Thanks<BR><BR>Jay

  2. #2
    Join Date
    Dec 1969

    Default RE: dates in querystrings

    are you doing<BR>server.urlencode(dtStart)<BR>?<BR>b/c you should be. then<BR>dtStart = request.querystring("STARTDATE")<BR>if isDate(dtStart) then<BR>&#039; insert into db<BR>else<BR>&#039; not a date, don&#039;t do anything<BR>end if<BR><BR><BR>justin

  3. #3
    Join Date
    Dec 1969

    Default Worked fine for me!

    I wrote this ASP page:<BR><BR>&#060;HTML&#062;&#060;BODY&#062;<BR>& #060;% <BR>For Each n In Request.QueryString<BR> &nbsp; Response.Write n & ": " & Request.QueryString(n) & "&lt;BR&#062;"<BR>Next<BR>%&#062;<BR>&#060;/BODY&#062;&#060;/HTML&#062;<BR><BR>And invoked it via<BR><BR>dummy.asp??equipID=18&startDate=31/01/2002%2008:00:00&endDate=3/02/2002%2008:30:00<BR><BR>And I got these results:<BR><BR>equipID: 18<BR>endDate: 3/02/2002 08:30:00<BR>startDate: 31/01/2002 08:00:00<BR><BR>What do you get on your machine with that same code and same URL?<BR><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