dbTalk Databases Forums  

date issue

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss date issue in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rahul
 
Posts: n/a

Default date issue - 10-12-2007 , 04:58 AM






i have created two db's on two servers with same command
db2 create db sample on f: using codeset ibm-1252 territory gb

now when i run db2 values char(current date)
one gives 10/12/2007
and other 12/10/2007

even the regional settings on control panel are same for both.
what can be the probable reason and solution.

i can not change the code(char(sdf,iso) etc ) as the application is
already live and too huge


Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: date issue - 10-12-2007 , 11:06 AM






rahul wrote:
Quote:
i have created two db's on two servers with same command
db2 create db sample on f: using codeset ibm-1252 territory gb

now when i run db2 values char(current date)
one gives 10/12/2007
and other 12/10/2007

even the regional settings on control panel are same for both.
what can be the probable reason and solution.

i can not change the code(char(sdf,iso) etc ) as the application is
already live and too huge

This has nothing to do with the database. What you are seeing is the
pretty print from the client. So investigate that end.
(territory of the shell that started CLP, etc, etc...)

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.