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
Sandhya Bhosale
NA
18
0
Convert int to datetime
Oct 31 2006 2:13 AM
I have an insert procedure wherein a user can enter max limit in the form of interger.
But during submit button, the integer value has to be converted to datetime.
I have written it as:
cmd.Parameters.Add(
"@Max_Limit"
, System.
Convert
.ToDateTime(txtMaxLimit.Value).ToShortDateString);
It gives me the following errors:
Error 2 The best overloaded method match for 'System.Data.SqlClient.SqlParameterCollection.Add(string, object)' has some invalid arguments
Error 3 Argument '2': cannot convert from 'method group' to 'object'
Please help.......................
Reply
Answers (
0
)
need help in developing an algorithm.
C# Developer needed in NYC