Tap Settings > System > Date & time, and switch Use 24-hour format on.
Update the time and date automatically
You can set your phone to update the time, date, and time zone automatically. Automatic update is a network service and may not be available depending on your region or network service provider.