Is It Am Or Am Grammar?

Is It Am Or Am Grammar? The first and most common way to write them is with lowercase “a.m.” and “p.m.” This way requires periods, and both Chicago Style and AP Style recommend this way of writing the abbreviations. This subway train will leave daily at 10:05 a.m. What is the correct way to write