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,
})
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_nameInputs
| Field | InventScript name | Value |
|---|---|---|
| Month Name | month_name | e.g. "January" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Parsed Month Number | parsed_month_number | e.g. "1" |
Example InventScript
More time blocks
Get Current Date and TimeGet the current UTC date and time in various formats.Parse Unix TimeParse a Unix timestamp into a human-readable date and time.Get Snowflake TimestampConvert a Discord snowflake ID into a creation date and time.Sleep / WaitPause the flow for a specified duration.Parse Relative TimeParse a user-provided relative time string into a Unix timestamp.Modify TimeAdd or subtract time from a Unix timestamp.Get Specific TimeGet a specific time in the future or past in a variety of formats.Truncate TimeTruncate a Unix timestamp to a given period.Parse Date and TimeParse a date and time into a Unix timestamp with a variety of parsing options.Standard Format Date and TimeFormat a Unix timestamp into a standardized date and time string.Generate TimecodeGenerate a Discord timestamp timecode from a Unix time.