Viewing 2 posts - 1 through 2 (of 2 total)
Thanks for the replies. I settled on the following:
convert(date,
case when substring(a.IDNumber,1,2)<=substring(convert(varchar,getdate(),112),3,2) -- when ID birthdate year is less than current year
then convert(varchar,substring(convert(varchar,getdate(),112),1,2))+substring(a.IDNumber,1,6) -- then add current Centuary
else convert(varchar,(substring(convert(varchar,getdate(),112),1,2)-1))+substring(a.IDNumber,1,6) -- otherwise...
September 7, 2016 at 11:46 am
moymike (2/4/2016)
The pivot year is 1950 though, which would be a problem with...
September 7, 2016 at 10:18 am
Viewing 2 posts - 1 through 2 (of 2 total)