Thursday, April 28, 2022

C# ASP.NET Convert Datetime to textfield

 string.IsNullOrEmpty(txtDateAction.Text) ? (DateTime?)null : Convert.ToDateTime(txtDateAction.Text),

REFERENCE:- https://stackoverflow.com/questions/22689456/passing-null-value-of-datetime-of-asp-net-control-in-c-sharp

No comments:

Post a Comment