Changes month names to month numbers