Single format part will just use the current value (eg 'M' = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12)
Two format parts will use the current value padded with zeros (eg 'MM' = 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11 or 12)
Some ways you can avoid confusion are:
- Use 'MMM' for month, which will be 'Jan', 'Feb', 'Mar' etc.
- Eg 'd/MMM/yyyy' = '30/Jul/2022'
- Eg 'MMM dd yyyy' = 'Jul 30 2022'
- Use 'yyyy-mm-dd' = '2022-07-30'