HighDots Forums  

date range

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss date range in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kryss2099 webforumsuser@macromedia.com
 
Posts: n/a

Default date range - 12-01-2003 , 07:48 AM






Hi,

I'm having a Search page and a result page.
I would like the result page to display result according to a range of date I will put in two text box, labelled Date1 and Date2. If nothing or only one date is entered all the records should appear.

Here's what I came up with:

<cfif IsDefined("Date1") AND #Date1# AND IsDefined("Date2") AND #Date2# NEQ "">
BETWEEN #Date1# AND #Date2# = Nextinspectiondate
</cfif>

Nextinspectiondate : is the field where the date is stored.

When I try using this line I'm getting the message : can't transform value in boolean or something of the like. I've tried different format but always get an error message of somekind.

If possible I'd like to enter the date as : dd-mm-yyyy

Any ideas?
Thanks



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.