lastMonth

Resolves the previous calendar month into ISO dates and UTC instants.

1|Updated Aug 23, 2026
One-click install
npx skills add https://github.com/foxmaster77/12BOT --skill lastmonth-foxmaster77
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lastMonth
Source: https://github.com/foxmaster77/12BOT/tree/main/munder-difflin-main/munder-difflin-main/resources/skills/lastMonth
Command: npx skills add https://github.com/foxmaster77/12BOT --skill lastmonth-foxmaster77

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually computing the exact start and end dates of the previous calendar month is error-prone, especially across month boundaries, timezones, and leap years. This Skill resolves "lastMonth" to concrete, trustworthy date bounds so reports and queries use correct time windows. ## Core Features & Use Cases - Date Range Resolution: Runs a bundled Node.js resolver that returns inclusive civil dates (start/end) in your local timezone. - UTC Instant Output: Provides startUtc and endExclusiveUtc as a half-open range for timestamp-based database queries. - Context Metadata: Returns days, timezone, and asOf so you know the span length and when the resolution occurred. - Use Case: Before generating a monthly sales report, run the resolver to get exact bounds like 2024-05-01 through 2024-05-31, then use those dates to filter your data query. ## Quick Start Ask the AI to resolve last month's date range using the lastMonth skill before running a monthly report or month-end summary task.

Frequently Asked Questions about lastMonth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the date range for last month programmatically?▼

Run the bundled Node.js resolver with the argument lastMonth. It prints inclusive start and end civil dates in your local timezone plus exact UTC instants, so you never compute month boundaries by hand.

What date format does the last month resolver return?▼

It returns ISO 8601 dates: start and end as YYYY-MM-DD civil dates in local time, plus startUtc and endExclusiveUtc as exact UTC instants forming a half-open range suitable for timestamp queries.

Can I use the resolved dates for database timestamp queries?▼

Yes. Use the startUtc and endExclusiveUtc values as a half-open [start, end) range in your query. This avoids boundary errors that inclusive end timestamps often cause at midnight.

Does the lastMonth skill handle timezone differences?▼

Yes. The resolver reports your local timezone in the timezone field and computes civil dates accordingly, while also providing UTC instants so both local and UTC-based systems get correct bounds.

What are the limitations of the lastMonth resolver?▼

It only resolves the previous full calendar month. For other windows like last45days or last6months, you must use the separate temporal skill, which supports arbitrary ranges.