on 12-09-2019 10:02 PM
Hi Folks,
I am facing a date issue when I am working with EST and IST time zone. My date value is increment or decrement by 1 in front end and backend server. I tried using UTC property true. And I am formatting the date using odata getDateTimeInstance. But the issue persists. I am looking for a solution to fix this.
While sending it to backend..I am using this.
var dateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({
pattern: "yyyy-MM-ddThh:mm:ss",
source: {
pattern: "yyyy-MM-ddThh:mm:ss"
}
});dateFormat.format(myDate);
While receiving to front end
<DatePicker value="{path: 'shipmentLegModel>/shipmentHeader/ERDAT', type: 'sap.ui.model.type.Date',
formatOptions: {
pattern: 'shipmentLegModel>/dateFormat',
strictParsing: true,
UTC: true}}">
Regards
Karthik S
User | Count |
---|---|
78 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.