COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: esanray on 18 Nov 2011 02:10:31 AM

Title: System time
Post by: esanray on 18 Nov 2011 02:10:31 AM
How to display system time if the time is  20:00 then it will display 2000 format
Title: Re: System time
Post by: HalfBloodPrince on 18 Nov 2011 03:00:28 AM
Hi you can use replace function to replace : with '' after casting systime() to character. If it doesn't work then create this calculation
cast(extract(Hour,systime()),varchar(10))+''+cast(extract(minute,systime()),varchar(10)). only check the time format what you want means 12 or 24 hour.