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
Jitendra Sharma
973
469
27.8k
string was not recognizes for valid date time...
Nov 15 2016 1:05 AM
ALTER procedure [dbo].[selectdate]
@CrtDate nvarchar(50)
as
begin
select top 1 Dates from General_Cash_Flow where CrtDate=@CrtDate order by CONVERT(nvarchar(50),Dates,120) Desc
end
my code
cmd = new SqlCommand("selectdate", cnn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("CrtDate", SqlDbType.VarChar).Value = login.setvalueyear;
dr = cmd.ExecuteReader();
if (dr.Read())
{
string ddt = dr["Dates"].ToString();
dtpckVoucherDate.Text = string.Format("{0:dd/MM/yyyy}", ddt);
}
dr.Close();
i have different-different date max date show in ddt but in datetimepicker not show max date
and give error string was not recognized for valid date time ....
Reply
Answers (
1
)
How to save dropdownlist selected Item in DB??
what is mean by class of col-xs-6