COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: krishdw85 on 15 Nov 2010 12:17:41 PM

Title: Current date in this format mmddyy ASAP pls
Post by: krishdw85 on 15 Nov 2010 12:17:41 PM
Hi folks,

Environment cognos 8.4 & oracle 10g

i would like to appreciate if any one provide the urgent calculations for me
i want the current system date as in this format mmddyy.

Please share the exact calculations which ll be helpful .

Thx in adv
Title: Re: Current date in this format mmddyy ASAP pls
Post by: MFGF on 15 Nov 2010 03:51:45 PM
Hi,

Drag a query calculation into your report.  For the expression, use
current_date

Select the calculated item in your report, and go to the Data Format property.  Set the Format Type to be Date, set the Date Style to Short and set the Date Ordering to Month, Day, Year.

MF.
Title: Re: Current date in this format mmddyy ASAP pls
Post by: krishdw85 on 15 Nov 2010 11:52:54 PM
Thanks for the answer

In the date column that means in the same calculation i am doing concatation also

that means 200$COLmmddyy(Currentdate)110

Here i want to concat 200$COL with currentdate and 110.

Can you please tell me ASAP
Title: Re: Current date in this format mmddyy ASAP pls
Post by: krishdw85 on 16 Nov 2010 07:07:42 AM
oops i got this

'200$COL'+to_char({sysdate},'mmddyy')+110
Title: Re: Current date in this format mmddyy ASAP pls
Post by: MFGF on 17 Nov 2010 06:06:13 AM
As an alternative, leave the query calculation returning just mmddyy, unlock the report structure and drag text items before and after the date value in the column and enter the preceding and following pieces as text.

Regards,

MF.