reverse-month

Convert diverse date inputs to canonical YYYY-MM format using Python.

Updated Oct 21, 2025
One-click install
npx skills add https://github.com/christopheryeo/claude-skills --skill reverse-month
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-month
Source: https://github.com/christopheryeo/claude-skills/tree/main/reverse-month
Command: npx skills add https://github.com/christopheryeo/claude-skills --skill reverse-month

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-dateutil, and includes scripts (resource) components.

What problem does it solve?

This Skill converts a wide range of date formats into a standardized year-month representation (YYYY-MM), enabling consistent monthly analysis and reporting.

Core Features & Use Cases

  • Flexible parsing: Accepts diverse date inputs (e.g., "21 Oct 2025", "2025-10-21", "October 2025") and outputs a uniform YYYY-MM value.
  • Use cases: Ideal for monthly reporting, time-series grouping, and calendar-based filtering across datasets.
  • Example: Given a dataset with various date columns, run the Skill to harmonize all dates to YYYY-MM for aggregation.

Quick Start

python scripts/convert_month.py "21 Oct 2025"

Frequently Asked Questions about reverse-month

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

FAQPage Schema
How do I convert diverse date formats to a standardized YYYY-MM format for time-series analysis?

To convert diverse date formats to a standardized YYYY-MM value, you can use a Python parser that accepts inputs like "21 Oct 2025" or "October 2025" and outputs a uniform year-month representation for consistent monthly reporting.

What is the best way to parse multiple date string formats into a uniform year-month value?

The best way to parse multiple date string formats into a uniform year-month value is using the Python dateutil parser, which automatically detects diverse input formats and emits a canonical YYYY-MM value for calendar-based filtering.

Does the dateutil parser work with varied inputs like "2025-10-21" and "October 2025" for monthly reporting?

Yes, the dateutil parser works with varied inputs like "2025-10-21" and "October 2025" for monthly reporting, reliably extracting the year and month to harmonize all dates to YYYY-MM for dataset aggregation.

How do I run a Python script to extract year-month from a specific date string?

To extract year-month from a specific date string, run the Python script by passing your date as an argument, such as `python scripts/convert_month.py "21 Oct 2025"`, which processes the input and returns the YYYY-MM format.

Can I use this YYYY-MM conversion approach for calendar-based filtering across datasets?

Yes, you can use this YYYY-MM conversion approach for calendar-based filtering across datasets, as it harmonizes various date column entries into a consistent format required for accurate time-series grouping and monthly aggregation.