

There are so many functions in the formula editor to make the job easy, we have to be aware of working and functionality of formula. So formula = Replace( “:” ”” ) will replace the “:” with blank.

There is function in BO formula editor called “Replace” which replaces the part of string with another string. Now, if you see the time filed format (HH:MM:SS) and require format of time (HHMMSS), we can achieve this by removing the colon(:) from the time field. For the other time its working fine and formatting is done accordingly. So formula will throw error for the time 15:25:23, because it is unable to convert it to date format. There is function in BO formula editor called Replace which replaces the part of string with another string. Now to for the time format i went on the logic to convert it to date using function “ToDate” and then use “FormatDate” function.īelow is the output which i got : 1st field is the time field, 2nd is after applying formula to convert to date field and the 3rd one is after formatting of date field : For the other time its working fine and formatting is done accordingly. So, for the input date for eg :”″ the formula gives the output as “20130925”. To achieve the requirement of date format we can use the following formula in Webi :įormatNumber(Year(Date field()) “0000”)+FormatNumber(MonthNumberOfYear() ”00″ )+FormatNumber(DayNumberOfYear() “00”). That means, date in yyyymmdd format and time in hhmmss format. I have requirement to provide the report in up-loadable date and time format. Like in formula editor you will find in “ Year” which will return year in a Date, “ MonthNumberOfYear” it will return the number in a date, “ DayNumberOfYear” returns the day number in a year etc. Apart form this we may have date and time functions in formula editor which we can use according to usage to achieve desire format. These are some standard formula which we can use to get the desire format. Please see the below usage of Format for more understanding : Input dateįormatDate(datefield() “Dddd dd Mmmm yyyy” )įormatDate(datefield() “dd/MM/yyyy hh:mm:ss” )įormatDate(datefield() “dd/MM/yyyy hh:mm:ss a” )įormatDate(datefield() “dd/MM/yyyy HH:mm:ss”) Please note that it is case sensitive so it will make a difference if you write Ddd and DDD. There are some date format which are available in Webi. In Webi there are multiple way in which you can change the format of the displayed date and time field according to requirement.
