How to store null value if time field is empty in asp.net.

Last Reply 8 days ago By pandeyism

Posted 11 days ago

Hello,

How to store null value if time field is empty in asp.net.

Dailyschedule Ds = new Dailyschedule
{
EmpID = box_section.SelectedValue,
Date = DateTime.Parse(txtDate.Value),
Time = DateTime.Parse(field_time.Text),
Remarks = field_remarks.Text,
};
return new AdminUsersDAL().SaveDailySchedule(Ds);

 

Thanks

You are viewing reply posted by: vail 10 days ago.
Posted 10 days ago

Hello,

 

I want the null value field like the below

 

Time = DateTime.Parse(field_time.Text)