sql - Wrong (future) convert to datetime -
sql - Wrong (future) convert to datetime -
these numeric values needs converted date time. date of birth values can not in future. can somehow implement rule not take date-of-birth value equal on 100 years old??
201246-1324 040210-6387 111257-0647 040210-6387
result:
2046-12-20 00:00:00.000 - wrong 2010-02-04 00:00:00.000 - right 1957-12-11 00:00:00.000 - right 2010-02-04 00:00:00.000 - right
temporarily alter cutoff, since you're working dobs in past..
sp_configure 'two digit year cutoff', 2015 reconfigure
then utilize standard datediff on years < 100.
sql date datetime type-conversion
Comments
Post a Comment