How can I convert nullable DateTime to nullable DateOnly?
So DateTime? to DateOnly?
The error says:
Error CS0029 Cannot implicitly convert type 'System.DateOnly?' to 'System.DateTime?'
I can convert from DateTime to DateOnly by doing:
DateOnly mydate = DateOnly.FromDateTime(mydatetime);
but what about nullables?
I have a way but I don't think is the best idea...