macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: How do I work with dates from URL and POST?

Subject: Re: How do I work with dates from URL and POST?
From: Ian Skinner <iskinner@xxxxxxxxxxx>
Date: Thu, 31 Jul 2008 12:46:21 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion


RichieWhite wrote:
When I pass the same date from an <A> tag and a form <input> tag, the results are different. They look the same, but the URL variable isn't in the same format when you use the result in a calculation.

 See http://www.fishingguidenow.com/datetest.cfm

Please help me find a way to consistently calculate the results whether they come from a form or a URL.


I don't see a problem with the date values you are receiving from the post and get data.

I note that you are adding one *month* to the received date to get 'tomorrow'. That seems to be a bit more then tomorrow to me, but otherwise it is working as coded.

The url example is missing <cfoutput> tags so the output is not rendered for the value of the function, but I presume it will work the same as the form test.


<Prev in Thread] Current Thread [Next in Thread>