The general approach to adding or changing badge data has been covered in the Guided Tour. However, there are some additional issues not covered there that need mentioning.
Date, Time and Timestamp Fields
Setting Date, Time and Timestamp Fields
Multiple Templates and the Changed Flag
Using the Auto Fill In Feature
Using the Locked Field Feature
When there are more than 10 fields