on 03-25-2015 12:18 PM
Hi,
Date:
I was able to display the date format based on locale(ie en = Mar 25 2015, en_GB = 25 mar 2015) but i want to set the date format as 25/03/2015 without using dipslayFormat in sap.m.DatePicker
<DatePicker id="oDateTo" value=" " valueFormat="MM/dd/yyyy"
displayFormat="dd/MM/yyyy" />\
Amount:
Need to format amount based on currency(INR). Getting always ###,###,###
Regards,
Preethi
Hi Preethi,
For Date format why not have both value format and display format the same?
Use below for Currency formating
jQuery.sap.require("sap.ui.core.format.NumberFormat");
oType = new sap.ui.model.type.Float({
maxFractionDigits: 3,
groupingEnabled: true,
groupingSeparator: ",",
decimalSeparator: "." });
And while binding do this - path: "{Amt}", type:oType
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Date Format: want to reuse the same application for multiple customers so we didnt want to use the valueFormat andf displayFormat.
Currency: we want to format the amount based on currency using the api FormatAmountStandardWithCurrency but it is formatting the amount properly for EUR and USD and but not for INR. Is ther any other api which will format properly
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.