dayjs

Parse, validate, manipulate, and format dates with a lightweight JavaScript library.

1|Updated Oct 19, 2023
One-click install
npx skills add https://github.com/fyndx/coinx --skill dayjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dayjs
Source: https://github.com/fyndx/coinx/tree/main/skills/dayjs
Command: npx skills add https://github.com/fyndx/coinx --skill dayjs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies complex date and time operations, making it easy to format, parse, calculate, and compare dates within CoinX.

Core Features & Use Cases

  • Date Formatting: Display dates in various human-readable formats (e.g., "YYYY-MM-DD", "DD MMM YYYY").
  • Date Manipulation: Add or subtract days, weeks, months, or years from a given date.
  • Date Comparison: Easily check if dates are before, after, or the same as other dates.
  • Use Case: Display transaction dates clearly, showing "Today", "Yesterday", or "Tomorrow" for recent entries, and a formatted date for older ones.

Quick Start

Format the current date as 'YYYY-MM-DD'.

Frequently Asked Questions about dayjs

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

FAQPage Schema
How do I format JavaScript dates into custom human-readable strings?

Format JavaScript dates by parsing them and applying custom patterns like "YYYY-MM-DD" or "DD MMM YYYY". This library handles parsing and displaying dates in various human-readable formats for application-wide management.

What is the best way to calculate relative time like "Yesterday" or "Tomorrow" in JavaScript?

Calculate relative time in JavaScript by using a lightweight date manipulation library that supports relative time calculations. It easily displays "Today", "Yesterday", or "Tomorrow" for recent entries and formatted dates for older ones.

How do I add or subtract days, weeks, or months from a date in JavaScript?

Add or subtract days, weeks, months, or years from a date in JavaScript using date manipulation functions. This library allows you to easily perform arithmetic on dates to calculate past or future times.

Can I compare dates to check if one is before or after another in JavaScript?

Compare dates in JavaScript to easily check if dates are before, after, or the same as other dates. The library provides specific functions to simplify complex date comparisons within your application.

Does this JavaScript date manipulation library support time zone handling?

Yes, this JavaScript date manipulation library supports time zone handling. It provides functionalities for parsing, validating, manipulating, and displaying dates with custom formatting and time zone management.