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
prabhu p
NA
181
113.9k
How to push date in datatype date in sql databasein asp.net
Mar 6 2016 8:11 AM
Dal
iam writing
BO object
string strdatefrom
Datatype of that date column in table is date and in Stored procedure also date
parameter.value[0] = Convert.ToDatetime (objbo.strdatefrom) ,
Its working fine because our Date format indb 2015-02-01(yyyy-mm-dd) from string it defaultly taking year,month,date
Our senior told its wrong way of passing date in string if date formate changed in DATABASE future IT WOULD RAISE EXCEPTION ERROR LIKE THAT .
FOR THAT HOW SHOULD I want to write code
Reply
Answers (
1
)
Not delete record the record are exsting anther table
Operation must use an updateable query in .net