I have model with some properties and I am passing xml file to my store procedure.
below is the property in my model
- public DateTime LastUpdatedDateTime { get; set; }
While passing LastUpdatedDateTime values from C#, I am passing current date time
- LastUpdatedDateTime = DateTime.Now;
In xml I am getting format like below
- <MyModel>
- <Id>7Id>
- <LastUpdatedDateTime >2019-07-25T10:29:52.9330116+05:30LastUpdatedDateTime >
- MyModel>
Now database value is not inserting as per curent datetime
Can anyone please correct it. What exactly I am missing into this???


Bidyasagar MishraRank #766 · 3K reputationPosted Jul 24, 2019, 8:24 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 24, 2019, 9:16 PM EDT
Amit MohantyRank #112 · 20K reputationPosted Jul 24, 2019, 10:21 PM EDT