This commit is contained in:
2021-06-24 23:05:48 +02:00
parent e625acc609
commit f2f992547d
134 changed files with 72921 additions and 2011 deletions

View File

@@ -927,6 +927,15 @@ Public Class SQL
End Try
Return 0
End Function
Public Shared Function checkNullDateReturnValue(ByVal o As Object, ByVal returnValue As Object) As Object
If o IsNot Nothing And o IsNot DBNull.Value Then
If o.ToString <> "" AndAlso IsDate(o) Then
Return CDate(o)
End If
End If
Return returnValue
End Function
Public Shared Function checkNullDate(ByVal o As Object) As Date
If o IsNot Nothing And o IsNot DBNull.Value Then Return CDate(o)
Return Now