Xbase date to Nullable<DateTime>
Posted: Fri Sep 27, 2019 9:14 am
Hello,
IMHO a conversion from a null_date to Nullable<DateTime> should result in a null value, and not in a DateTime.MinValue.
This code
gives the following output:
Wolfgang
IMHO a conversion from a null_date to Nullable<DateTime> should result in a null value, and not in a DateTime.MinValue.
This code
Code: Select all
local dDate as date
local dResult as DateTime
local dResultN as Nullable<DateTime>
dDate := null_date
dResult := dDate
dResultN := dDate
System.Console.WriteLine( String.Format( "{0} gives {1} (DateTime) and {2} (Nullable<DateTime>)", dDate:ToString(), dResult:ToString(), dResultN:ToString() ) )
Code: Select all
. . gives 01.01.0001 00:00:00 (DateTime) and 01.01.0001 00:00:00 (Nullable<DateTime>)