Marika Marszalkowski

Results 57 comments of Marika Marszalkowski

Hey @rpathak-max, I think you are using the wrong assumptions on how `fromJson` works. The [docs](https://sap.github.io/cloud-sdk/docs/js/features/odata/v2-client#build-an-entity-from-a-json-representation) are not very exact on that, but I think what you want is rather...

Sure: ```js const moment = require('moment'); const createOrderRequestBuilder = zcssc_C_Order_HeaderApi.requestBuilder().create( zcssc_C_Order_HeaderApi.entityBuilder().fromJson({ orderDate: moment(), // ... }) ); ``` Is this what you tried?

As I pointed out before, you have two options: 1. Use our [deserializer](https://sap.github.io/cloud-sdk/docs/js/features/odata/v2-client#deserialize-an-odata-json-response-to-an-entity) for this. I think this is the preferred option in your case. 2. Parse the date according...