To get amt value in format specified

Hello everyone ,

We are extracting the amount so its represented in this format
Example:
Current format : 9.560.357,08

Expected value is :9,560,357.08

How can we convert it into the expected format

Thanks in advance!!!

HI,

How about the following expression?

Double.Parse(strValue,System.Globalization.NumberStyles.Any,System.Globalization.CultureInfo.CreateSpecificCulture("es-ES")).ToString("N2")

Regards,

1 Like

Hi @Yoichi

Thanks for the quick response:)

What does N2 denote

It’s standard format specifier. Please see the following document in details.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.