While converting text to datetime I got error..The code is given below...
bjJobBL.JobDate =Convert.ToDateTime("txtDate.Text");
Here the jobdate is declared in the class as
private DateTime? m_JobDate;
Its properties are like this...
public DateTime? JobDate
{
get
{
return m_JobDate;
}
set
{
m_JobDate = value;
}
}
{
get
{
return m_JobDate;
}
set
{
m_JobDate = value;
}
}

Harshal PatilPosted Dec 15, 2016, 5:32 AM
DateTime date = Convert.ToDateTime ("txtDate.Text",System.Globalization.CultureInfo.GetCultureInfo("hi-IN").DateTimeFormat);
Aleena SaviourPosted Dec 13, 2016, 11:46 PM
{
objJobBL.JobDate = Convert.ToDateTime(pnltxtDate.Text);//stringToDateConversion(pnltxtDate.Text, "dd/MM/yyyy");
}
else
{
objJobBL.JobDate = null;
}
Afzaal Ahmad ZeeshanPosted Dec 13, 2016, 1:13 PM
Afzaal Ahmad ZeeshanPosted Dec 13, 2016, 1:11 PM
Khaja MoizuddinPosted Dec 13, 2016, 1:06 PM
Bikesh SrivastavaPosted Dec 13, 2016, 12:47 PM
Ananth GPosted Dec 13, 2016, 9:09 AM
Aleena SaviourPosted Dec 13, 2016, 8:53 AM
Ananth GPosted Dec 13, 2016, 7:22 AM