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

date conversion

Status
Not open for further replies.

rajmns

Programmer
Nov 29, 2007
8
0
0
US
I have a date column in numeric format. Oct 2007 for eg., is stored as 2007-10. A prompt is based on the column. The value selected in the prompt selected should be displayed on report list header as October 31 2007. Any inputs as to how to do that?

Thanks in advance.
 
Code:
CASE 
WHEN 
substring(field,6,2) = '10'
THEN 
'October 31'||' '||substring(field,1,4)
WHEN 
substring(field,6,2) = '11'
THEN 
'November 30'||' '||substring(field,1,4)
.....
.....
.....
ELSE NULL END



Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top