Migrate old files (with date created) to new mac
When you setup a new Mac, you're asked if you want to copy over documents, apps, settings, etc. from an old Mac. This happens using the program known as Migration Assistant. It is an easy and pretty foolproof way to migrate data from an old computer to a new computer.
My experience has been that Migration Assistant keeps your creation time stamps intact. It might be necessary to run this from the initial setup prompt to keep the time stamps intact - as opposed to running it manually later on.
If you have problems with the file time stamps, you can always manually copy them over later using a tool like rsync. I'm assuming that you only want to do this for some specific user files that you have, and not macOS system files - as they would be different for a new version of macOS on the new computer.