Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
using datediff or alternative
Home
ColdFusion
Discussions
using datediff or alternative
0
Upvote
using datediff or alternative
critical5
New Here
,
/t5/coldfusion-discussions/using-datediff-or-alternative/td-p/380914
Feb 13, 2008
Feb 13, 2008
Copy link to clipboard
Copied
Hi there,
Could someone help with this query? I want to select customers who have viewed a property in the last 14 days.
This is what i tried but not working...it seems to select all customers. Any help would be appreciated.
TOPICS
Advanced techniques
Views
382
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
3 Replies
3
Jump to latest reply
Steve Sommers
Advocate
,
/t5/coldfusion-discussions/using-datediff-or-alternative/m-p/380915#M34403
Feb 13, 2008
Feb 13, 2008
Copy link to clipboard
Copied
Try this:
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Dan_Bracuk
LEGEND
,
/t5/coldfusion-discussions/using-datediff-or-alternative/m-p/380916#M34404
Feb 13, 2008
Feb 13, 2008
Copy link to clipboard
Copied
Different databases have different date functions. You didn't state what you are using.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Steve Sommers
Advocate
,
/t5/coldfusion-discussions/using-datediff-or-alternative/m-p/380917#M34405
Feb 13, 2008
Feb 13, 2008
Copy link to clipboard
Copied
LATEST
The CreateODBCDate method I showed above works with MS-SQL, MySQL and Access -- the big three. I have no idea if it works on Oracle (nor do I care; oops, did I type that out loud?)
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide