My understanding is that you must send the GENDEC to Customs AND IMMIGRATION if you are coming in from the EU and give them both NOT LESS THAN four hours notice.
I usually get ops at the airfield I'm leaving from to send it or send it myself before departure. Pick a time so that you can be sure not to arrive early. Arriving a bit late is fine.