What is the Proper formatting of date in Pervasive ODBC SELECT

I am trying to retrieve access from a Pervasive Database using Pervasive ODBC.  I want to find employees hired after a certain date.  my current query looks like:
SELECT
     Employee.EmployeeName,
     Employee.EmployeeIsInactive,
     Employee.Type,
     Employee.PayStatus,
     Employee.IsEmployee,
     Employee.Employee_LastName,
     Employee.Employee_FirstName,
     Employee.Employee_MiddleInit,
     Employee.EmpRecordNumber,
     Employee.HireDate
FROM
     Employee
WHERE
     Employee.HireDate >= '01/01/2015'

I have also tried Employee.HireDate >= '20150101'   In either case I get the error "Error : -1 [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Error in predicate: Employee . HireDate >= '01/01/2015'  "

Can anyone help my identify the proper format/syntax of the where clause using a date?
Gary Connor, Phd.CIO, CISOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcelbaCommented:
Almost all SQL dialects allow Y-M-D format:
WHERE Employee.HireDate >= '2015-01-01'

Explicit conversion is another option:
WHERE Employee.HireDate >= CAST('2015-01-01' as DATE)

And Pervasive should also allow date literal:
WHERE Employee.HireDate >= {d '2015-01-01'}

What data type is Employee.HireDate?
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PortletPaulfreelancerCommented:
Don't use such a sequence as this: 12/07/2015

Is the date I used in December? or July?

(Don't bother answering, the fact that you cannot tell for sure is the only reason for asking)

no points pl.
0
Gary Connor, Phd.CIO, CISOAuthor Commented:
I had to specifically CAST the value as a date - the other two possibilities did not work.  (Just added this notes so anyone else who looke here for a solution will know which one worked.)  Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.