Get month number using switch, array or string

Arrays are faster when you don't need logic, you can also use a string but it's a little more triky.