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>7</Id>
- <LastUpdatedDateTime >2019-07-25T10:29:52.9330116+05:30</LastUpdatedDateTime >
- </MyModel>
Now database value is not inserting as per curent datetime
Can anyone please correct it. What exactly I am missing into this???