aspnetboilerplate
aspnetboilerplate copied to clipboard
How to use currency by localization in angular template?
I have a problem when using angular templates and using localization, when changing the currency by localization that previously used a comma (1,000,000) as separator to change to a dot (1.000.000) there was a problem when saving. for example in the UI input using a comma it was considered as a dot by the API. Has anyone had a similar experience? Please help those who are experienced with this problem, thank you
@yopichy for me i do something like this
public const int DecimalPlaces = 3; public const string DecimalFormat = "0.000"; public const int MoneyDecimalPlaces = 3; public const string MoneyDecimalFormat = "0.000"; public const string DateFormat = "yyyy-MM-dd"; public const string TimeFormat = "HH:mm:ss"; public const string DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
then view or code ReceptionDate.ToString(Consts.DateFormat)
also do something like this way in js
If possible ABP can add feature like to define these in setting to override the culture it will be great
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.