✅ create a nullable datetime array
hi all, how do we create a nullable datetime array?
5 Replies
i tried to initialize a nullable datetime to a variable
that is result.Value = new DateTime[] { myDateVal }
but result.Value is a nullable DateTime[] type
Put a ? after the type you want to be nullable.
like this ? result.Value = new DateTime?[] { myDateVal }
yes
okay thank you 🙏