Microsoft
Software
Hardware
Network
Question : Cognos 8.2 Report Studio, date-to-string
I'm trying to format two date fields in Cognos 8.2 Report Studio. The two date fields are Project Start Date and Project End Date. The result should display in this format, mm/yy - mm/yy. So far I have I've got the format, however I need the month to always be two characters, for example January would 01 instead of 1. Please see my code below. What I have now works but does not give me two characters for month. Can someone help with this?
substring(cast(extract(mon
th,[Projec
t Start Date]),VARCHAR(10)),1,2) + '/' + substring(cast(extract(yea
r,[Project
Start Date]),VARCHAR(10)),3,2) + ' - ' + substring(cast(extract(mon
th,[Projec
t End Date]),VARCHAR(10)),1,2) + '/' + substring(cast(extract(yea
r,[Project
End Date]),VARCHAR(10)),3,2)
thanks,
vinez
Answer : Cognos 8.2 Report Studio, date-to-string
Never mind I will try to close this case. It seems that you do not have that many Cognos 8 Report Studio experts.
Random Solutions
Outlook 2000 Message Body Truncated. Windows 98.
Group Policy, RSOP Admiistrative Template error. XP Pro Server 2003 Native environment
Group policy: Lockout policy and quota policy question
XP Pro - I used Linux to reset my windows password, now I can't connect to internet
datareader to dataset
Dell Inspiron 1000 Video Problems
passing xml data to a url
Exchange 2003 NLB/FE and BE server
have dell d531 trying to install wifi driver-r219871 i think this is right but get error message setup.rul 380 -
for CRAK: Hide button when printing