a formal invitation will often write the word out... "the sixth (day) of september" check with a local supplier of wedding invitations or other formal announcements and get heir opinion.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Both forms are common and acceptable in formal and informal contexts.
Don’t worry about it.