Using C#. I have a string dateTimeEnd.
dateTimeEnd
If the string is in right format, I wish to generate a DateTime and assign it to eventCustom.DateTimeEnd
DateTime
DateTime is a non-nullable value type
DateTime? newdate = null;
You can use a Nullable
Nullable
c# Nullable Datetime