Quantcast
Viewing all articles
Browse latest Browse all 3510

Setting date from OData response without conversion

Is there a way to set the date (Edm.DateTime) i get from odata read request. I mapped the odata to my datePicker as follows

 

value: {

  path: "ActionsData>/HireDate",

  type: new sap.ui.model.type.Date({

     source: {

      pattern: "timestamp"

     },

     pattern: "dd.MM.yyyy",

     strictParsing: true

  })

},

 

but unfortunatelly the date is displayed like: NaN.NaN.0NaN

 

Any ideas to how to display the date in format dd.MM.yyyy with minimal effort?


Viewing all articles
Browse latest Browse all 3510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>