A.M. stands for Ante Meridiem, which means before midday.
P.M. stands for Post Meridiem, which means after midday.