To be a bit more formal about things, though, write out the number, as in four o'clock. If you need to include hours and minutes with o'clock, write it as half past four o'clock or half after four o'clock (but not four-thirty o'clock). Generally, "o'clock" is more formal than a.m. or p.m.