We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Workaround on validated feedback 25055 " Date format serialization support in posted data"

Dear support,

Could you provide a workaround to the validated feedback 25055 " Date format serialization support in posted data".

My datamanager:

  <SfDataManager Url="@($"{_ODataClient.Settings.BaseUri}/PortfolioTransactionBases")" Adaptor="Adaptors.ODataV4Adaptor" CrossDomain="true"

                               Headers="@(new Dictionary<string, string>() { { "Authorization", $"Bearer {_ODataClient?.BearerToken}"} })"></SfDataManager>

My entity type "date":

[Required]

        [Column(TypeName = "Date")]

        public DateTime TradeDate { get; set; }


My Edm model:

<Property Name="TradeDate" Type="Edm.Date" Nullable="false" />


My post from SFDataManager:

  "TradeDate": "2022-11-08T00:00:00+01:00",


As you can see the datamanager does not use the Edm type or the column type definition to seriliase the date.

Thank you for your help

Regards

Vincent


1 Reply

MS Monisha Saravanan Syncfusion Team November 10, 2022 01:56 PM UTC

Hi Vincet,


Greetings from Syncfusion.


We would like to inform that it is impossible to provide solution/workaround for the above mentioned feedback on the sample level at our end.


Please let us know if you have any concerns.


Regards,

Monisha


Loader.
Live Chat Icon For mobile
Up arrow icon