Aleena Saviour

Aleena Saviour

  • NA
  • 519
  • 88.2k

convert text to datetime

Dec 13 2016 6:46 AM
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;
}
 
 

Answers (10)