Return nullable datetime from scalar, stored procedure
- by molgan
Hello
I have a function that returns a date from a stored procedure, and it all works great til the value is NULL, how can I fix this so it works with null aswell?
public DateTime? GetSomteDate(int SomeID)
{
DateTime? LimitDate= null;
if (_entities.Connection.State == System.Data.ConnectionState.Closed)
…