You can prepare pastry cream up to three days ahead of time, just be sure it is stored in an airtight container in the refrigerator.