Hi Teja, This does not help. I would like to dynamically create the fiscal year - not hard code the return values. Here's how I would like to write the code: if Month(DatePart('PS_Record_DateEffective'n )) in (1,2,3) Return ToChar(Year(DatePart('PS_Record_DateEffective'n ))-1) +'-'+ ToChar(Year(DatePart('PS_Record_DateEffective'n )) else ToChar(Year(DatePart('PS_Record_DateEffective'n ))) + '-'+ToChar(Year(DatePart('PS_Record_DateEffective'n )+1) I just need a replacement for the ToChar function Sanjeev
... View more