While both are correct and somewhat interchangeable, if you want to be correct with your usage of military time, then you should use 0000 or zero hundred hours to indicate midnight (or 12 am).