ODBC Date Format

ODBC Date Format

Postby Jimmy » Mon Jul 17, 2023 11:52 am

hi,

i notice that Sample c:\fwh\samples\testodbc.prg show DATE as YYYY-DD-MM
i have SET DATE GERMAN but it does not help

how to use ODBC and GERMAN Date Format :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: ODBC Date Format

Postby nageswaragunupudi » Tue Jul 18, 2023 6:27 am

That is a character value
You con covert to date with
Code: Select all  Expand view
dDate := FW_Str2Dt( strDate )


Please see:
Code: Select all  Expand view
  oDbf:lDateAsStr := .t.

at line 95 of testodbc.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10595
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: ODBC Date Format

Postby Jimmy » Tue Jul 18, 2023 8:48 pm

hi,
nageswaragunupudi wrote:That is a character value

Please see:
Code: Select all  Expand view
     oDbf:lDateAsStr := .t.

at line 95 of testodbc.prg

ok, thx

when set .F. and use SET DATE GERMAN it display right
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: ODBC Date Format

Postby nageswaragunupudi » Tue Jul 18, 2023 9:10 pm

I don't know.
Haven't touched ODBC for a very long time.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10595
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 45 guests

cron