pervasive sql date error

Could someone tell me how to insert date on PERVASIVE, i have a table with a date field, i alway got an database error when i try to insert a record, i am using asp as front end

when i try to run the insert sql in the pervasive database the error
it gives this error
ODBC SQLSTATE = 22008 NATIVE error code=0
Invalid date,time or time stamp value

Her is the error in front end (page)

Run-Time error '12147217900(80040e14);
[Pervasive][Odbc Client Interface][LNA][Pervaiive][ODBC Engine Interface]Invalid date, time or timestamp value.


Please help
BachiaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

TimYatesCommented:
Can you post your SQL?
BachiaAuthor Commented:
Yes i can post to MS SQL database but in pervasive i can't.
BachiaAuthor Commented:
in MS SQL database i am able to insert the date
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

TimYatesCommented:
http://www.experts-exchange.com/Databases/Btrieve/Q_21480522.html

Does that help?

I meant can you post your SQL insert statement you are using ;-)

Tim
BachiaAuthor Commented:
here is the SQL

dim pop,poprec
poprec = "INSERT INTO HistoryHeader(DocumentType,DocumentNumber,CustomerCode,OrderNumber,Message01,Message02,Telephone,Fax,Contact,Total,Period,TotalCost,FCurrTotal,TotalTax,FCurrTotalTax,Date) VALUES(" &_
              "'"&request.Form("document_type")&"'"&_
              ",'"&request.Form("invoice_num")&"'"&_
              ",'"&request.Form("Customers")&"'"&_
              ",'"&request.Form("invoice_ref_no")&"'"&_
              ",'"& request.Form("invoice_message1")&"'"&_
              ",'"& request.Form("invoice_message2")&"'"&_
            ",'"& request.Form("telephone")&"'"&_
            ",'"& request.Form("fax")&"'"&_
            ",'"& request.Form("contact_person")&"'"&_
            ",'"& request.Form("invoice_Amount")&"'"&_
            ",'"& request.Form("period")&"'"&_
            ",'"& request.Form("invoice_Amount")&"'"&_
            ",'"& request.Form("invoice_Amount")&"'"&_
",'"& request.Form("invoice_Amount") * request.Form("quantity") * request.Form("tax_type")&"'"&_
            ",'"& request.Form("invoice_Amount") * request.Form("quantity") * request.Form("tax_type")&"'"&_
",'"& request.Form("invoice_Date")&"'"&_
")"
             
set pop = MM_new_STRING.execute(poprec)
TimYatesCommented:
is the "invoice_Date" value in:

    yyyy-mm-dd

format?

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
BachiaAuthor Commented:
yes i have trie d to interchange the date but still not working.
BachiaAuthor Commented:
Cool the date has worked i have added you another 80 point

thax a million

Abra
TimYatesCommented:
yay! :-)

glad I could help :-)

and thanks!

good luck!!

Tim
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
Programming

From novice to tech pro — start learning today.