Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying for Dates 1

Status
Not open for further replies.

TNGPicard

Technical User
Jun 23, 2003
153
0
0
US
Code:
select * from "ITMAUDIT" where customernum > 0 and dtSystemDate >= '12-1-2007'

dtSystemDate has the type datetime I believe on it (PCC errors when I try and look at the properties of the table). But this field is actually storing dates as a date.

Crystal seems to figure it out, but I sure can't, call it a this MS dba still has trouble with PSQL.

Mark
 
Dates need to be in the format:
'yyyy-mm-dd'
THe single quotes are needed.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top