1
Answer

how to send date time value null in text box c#

how to send date time value  null  in text box
 
i will use
 
objadmin.startdate =Convert.ToDateTime(System.DateTime.Now); 
 
get error in end date 
 
if (txt_Enddate.Text == "")
{
objadmin.end_date = "";
}
i will want i  not insert end date then it save null or empty  value
in txt_Enddate
 
Answers (1)