The engine code will tell what year the engine is,at least "roughly"--sometimes the codes covered a few years span...all you need to know basically is if its a pre 1896 engine with a two piece rear main seal or newer,with the one seal,and which side the dipstick goes on..
(Newer engines after 1987 usually used the one piece rubber oil pan gasket with the "smile" gaskets made into it)...older ones used either the thick or thin smile rubber gasket,and all I ever did was match up the old one to the new one--both were included in Fel-Pro timing cover gasket sets..
There is a date code cast into the block but its almost dead center at the rear on the area next to the bell housing,next to the casting number that determines the cubic inch size--doubt you would be able to get a good enough look at it to "read" it with the engine in the truck--maybe if you had a removeable tunnel "hump" and took it off you could see it..but it isn't really a must to know exactly when it was made..
I liked to replace the oil pump drive collar with a steel version when I had the oil pan off,those nylon ones can fail after high miles and kill a engine..also the oil pump itself,it it looks tired,or had any timing gear nylon teeth stuck in the pickup screen..
The last oil pump I bought for a small block,a stock replacement Melling one, was like 13 bucks new at Autozone,and another 5 bucks for the drive collar..pickup screen was another 10 bucks..I did that plus a 3 piece timing chain & gear set for 20 bucks--the 70 or so bucks was worth it to know all the potential problem parts were replaced..