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;
}
}