View Single Post

   
  #2 (permalink)  
Old 02-27-2008, 01:11 PM
Serge Rielau
 
Posts: n/a
Default Re: Convert timestamp to yyyy-mm-dd format

yogi wrote:
> Hi,
> I am working on a database that has a variable with timestamp
> values. I wanted to convert the variable from timestamp to yyyy-mm-dd
> format.

db2 => VALUES SUBSTR(VARCHAR(CURRENT TIMESTAMP), 1, 10);

1
----------
2008-02-07

1 record(s) selected.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Reply With Quote