You can get the release date for most phones at GSMArena, but the build date for the particular phone usually isn't either in the serial number or on the phone. (The manufacturer probably keeps serial number vs ship date for a few years, for the major manufacturers - but the name on the phone may not be the name of the manufacturer.)