Both NASA and an astronomy professor explain that ante (post) meridiem is correct instead of ante (post) meridian. One site explains nicely that 'before (after) meridian' would be correct too but that 'ante meridian' mixes English and Latin in an unexeptable way.
Wolfgang