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

datetime where

New Here ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

just a quick one

i have a date column in my table with the format of 2006-12-18 09:43:00

i need to reference the in my where clause, not sure how to format it?

WHERE ServerSMS <= #(Now()#
TOPICS
Advanced techniques

Views

232

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
LEGEND ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

Don't try to format it at all. Better approaches are:

If your db has something that returns the current date and time, use that.
Otherwise either,
use cfqueryparam
or
use createodbcdatetime

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
New Here ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

LATEST
ok thanks sorted

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