dbTalk Databases Forums  

Date format

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


Discuss Date format in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
shsandeep
 
Posts: n/a

Default Re: Date format - 05-25-2006 , 06:15 PM






Glad that it helped you!!

Cheers,
Sandeep.


Reply With Quote
  #12  
Old   
Tonkuma
 
Posts: n/a

Default Re: Date format - 05-26-2006 , 08:30 AM






You are right. I agree with you.
My main intention was to show the rich functional capabilities of
non-procedural part of SQL Language, including expresssions and DB2
supplied functions.

Anyway, I found a error in my code.
Quote:
, '%h', SUBSTR(CHAR(QUARTER(ATIMESTAMP)/2),1,1))
is wrong. it should be the following
, '%h', SUBSTR(CHAR((QUARTER(ATIMESTAMP)+1)/2),1,1))



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.