Consistent formatting improves message clarity and professionalism.
Amount Formatting
Code
// ✅ Good - Consistent decimal placesamount: '49.99'amount: '149.00' // Even for whole numbersamount: '1,234.56'// ❌ Avoid - Inconsistent formattingamount: '49.9'amount: '149'amount: '$49.99' // Templates add $ automatically
Date and Time Formatting
Code
// ✅ Good - Short and consistentdate: 'Jan 15' // Short month + daydate: 'Dec 31'time: '2:00 PM' // 12-hour format with AM/PMtime: '10:30 AM'// ❌ Avoid - Inconsistent or too longdate: 'January 15th, 2024'date: '01/15/2024'time: '14:00' // 24-hour format may confuse userstime: '2 PM' // Missing :00