I assume you want this:
January → 1
February → 2
March → 3
…
This expression does just that:
parseInteger(formatDateTime($yourDate, 'M'))