Home » Developer & Programmer » Reports & Discoverer » Using Instr and substr (BIP)
Using Instr and substr [message #601664] Sat, 23 November 2013 21:36 Go to previous message
purnimagn
Messages: 2
Registered: November 2013
Location: Bangalore
Junior Member
Hi,

I am trying to use the same logic you mentioned, but with the Instr withing the substring. My date format is d/m/yyyy.
The code I have written is
<?xdofx:substr(SsCalculatedArrivalDate,Instr(SsCalculatedArrivalDate,'/',1,2)+1,Instr(SsCalculatedArrivalDate,'/',1,2)+4) || '-' || substr(SsCalculatedArrivalDate,Instr(SsCalculatedArrivalDate,'/',1,1)+1,Instr(SsCalculatedArrivalDate,'/',(Instr(SsCalculatedArrivalD ate,'/',1,1)+1),2)- (Instr(SsCalculatedArrivalDate,'/',1,1))) || '-' || substr(SsCalculatedArrivalDate,1,Instr(SsCalculatedArrivalDate,'/',1,1)-1)?>

which returns me the date in the yyyy-m-d format, but I cant use the word properties to display it in dddd, MMMM dd, yyyy, but it always displays in yyyy-m-d.

Please help.

Thanks
 
Read Message
Read Message
Previous Topic: Convert report to Excel
Next Topic: Convert report to Excel File
Goto Forum:
  


Current Time: Thu Apr 25 18:27:30 CDT 2024