Category Cash loans

Assign null value to datetime field in c

HELENE F. Cash loans

Twenty nine acknowledgement

Your current Reply to
Implementing C#. My partner and i currently have the line dateTimeEnd.. Any time the particular cord can be within right formatting, As i would like so that you can get some DateTime along with assign it to help eventCustom.DateTimeEnd from category. people Nullable DateTimeEnd { get; set; } Whenever dateTimeEnd is certainly null or clear As i will want eventCustom.DateTimeEnd set in place that will null.. When i have always been attempting to be able to acquire it utilizing a using code although When i obtain continually null for the purpose of eventCustom.DateTimeEnd.
Solution 1
Resolution A pair of
C# Nullable Choice
a Option
however everyone are able to generate that any nullable design which will permits one that will allocate typically the null so that you can any datetime. DateTime? nullableDateTime = null; Null Worth go inside datetime industry cmd1.Parameters.AddWithValue(" @ups_delivery_date", We tend to are unable to designate null valuation to help you datetime. I've produced a few alterations to an individual's passcode for that reason which the software may well efficiently operate. try.
Remedy 1
May well 31, 2010 · Because DateTime might be a price style (like int), an important Null price won't be able to be sent to to make sure you the item. Through this illustration numerous people employ DateTime.MinValue and also DateTime.MaxValue preferably.


Leave a Reply

Your e-mail will not be published. Required fields *