Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 243.2k

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

May 12 2016 1:22 AM
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)