Question : Format the Expression with Hyphen

I have a bank sort code to format in the report ..
For eample, I have the bank sort code as 202223 in the database and want to format as 20-22-23 in the repot...  
I have used the expression mentioned here under , but doesn't work...  Please correct my expression and provide the solution

Format((First(Fields!ISH_BANK_SORT_CODE.Value, "dsVATREPORT_GETINVOICEDATA")), "##-##-##")
Regards,

Sreekanth..

Answer : Format the Expression with Hyphen

try:

1:
=Convert.ToInt32(First(Fields!ISH_BANK_SORT_CODE.Value, "dsVATREPORT_GETINVOICEDATA")).ToString("##-##-##")
Random Solutions  
 
programming4us programming4us