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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format date in pervasive 1

Status
Not open for further replies.

shmilyca

Programmer
Apr 30, 2006
63
US
Hi,
I dont knoiw lot about pervasive ..is there any function readily available that can format date display from 20060816 to 08/16/2006 format?
 
What version of PSQL are you using? There's no ready made function but if you are using PSQL V.9x, you can create a function that does it. You'd need to use functions like "Left", "Right", and "Substring" to convert it.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
ok.. I am using Pervasive 8. Thank you very much for your help.
 
Well..I build query using substring to show format i wanted..it works in control center. but when i use odbc driver (Data direct 5.0) it fails saying unknow syntax substring. any idea? . I am using pervasive sql 8.0. I could use left & right but I need substring to get month right?
 
I don't know if the Data Direct driver supports substring. Why not use the PSQL ODBC Driver.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Where can I get more inofrmation on psql odbc driver? I have no idea why they are using datadirect driver since I am new to this project. How can I switch to psql odbc driver? what are advantages/disadvantages of using psql odbc driver?
 
The PSQL driver is included with the PSQL engine. It's called "Pervasive ODBC Engine Interface" or "Pervasive ODBC Client Interface". You would change your Data Source Name to use the PSQL driver rather than the Data Direct driver.
The advantages are that it's directly tied to the PSQL engine and was written by Pervasive where the Data Direct driver is an add on.


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

Part and Inventory Search

Sponsor

Back
Top