cancel
Showing results for 
Search instead for 
Did you mean: 

cannot parse date to odata service

0 Kudos
176

Hi,

Iam trying to parse date to odata . my date in the input is in this format : 2019-09-24T11:25:58. and i need to convert to this format /Date(1354665600000)/ so i can send it to the backEnd service. Any help please?

smarchesini
Active Contributor
0 Kudos

Hi Turkia,

what is the type of input ? Is it a datepicker?

Sebastiano

0 Kudos

it is an input :

<Input id="date" value="{ path: '/dtValue', type: 'sap.ui.model.type.DateTime', formatOptions: {pattern: 'yyyy-MM-ddTHH:mm:ss', strictParsing: true , UTC: true}}"/>

and i parse it to odata service as :

oEntry.date = this.getView().byId("date").getValue();

Accepted Solutions (0)

Answers (0)