Go to Settings > General > Date & Time and turn off the toggle in front of 24-Hour Time and WhatsApp time will change to 12-Hour format.