TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rupesh Kahane
102
19.1k
4.2m
DateTime values is getting incorrect from XML to Database
Jul 25 2019 12:20 AM
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???
Reply
Answers (
3
)
How to add a new calculated column
Database Security