Translate

Wednesday, 11 July 2018

sql check invalid date isdate() function

IF(ISDATE('2019-12-23')='0')
PRINT '1'--invalid date
ELSE
PRINT 'OK'---valid date

No comments:

Post a Comment