Parse Month Name

BlockTime

Parse a month name into a number.

Inputs

Month NameRequired

Month name to parse.

Example: January

Outputs

Parsed Month Number

Numeric month (1-12).

Example: 1

Build a bot using blocks like Parse Month Name

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: parse_month_name

Inputs

FieldInventScript nameValue
Month Namemonth_namee.g. "January"

Outputs

FieldInventScript nameValue
Parsed Month Numberparsed_month_numbere.g. "1"

Example InventScript

parseMonthName := parse_month_name(Args{month_name: "January"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Parsed Month Number: " + parseMonthName.parsed_month_number,
})

More time blocks