• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

variable day and specific time

New Here ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

I am attempting to create a query that returns db records based upon date and time the date changes (IsToday) but the time is a constant (4:30 pm).

<CFPARAM name="IsToday" DEFAULT="#CreateODBCDate(Now())#">

Is there a way to append a time constant to Now() so that only records with a datetime that is less than Now() 16:30:00 would be identified?
TOPICS
Advanced techniques

Views

217

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Sep 20, 2006 Sep 20, 2006

CreateDateTime(Year(Now()), Month(Now()), Day(Now()), 16, 30, 0)

Votes

Translate

Translate
Contributor ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

LATEST

CreateDateTime(Year(Now()), Month(Now()), Day(Now()), 16, 30, 0)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation