Casting date...I wouldn't know as inventory was simply used when it was needed.
I've been lead to understand, and it makes sense to me, that the engine and transmission received the VIN stamp once the assembly was mated to and ready for installation into the vehicle. From a production standpoint, this makes sense to me.