Skip to content
TrustedSkillsbeta
Back to all skills

1K Date Formatting

Listed
onekeyhq·vlatest·frontend

Automatically formats dates across various sources into a consistent, unified format for seamless data integration.

Install on your platform

This skill no longer installs under the name 1k-date-formatting. onekeyhq/app-monorepo has no skill named "1k-date-formatting" any more. It was renamed, moved or deleted upstream.

We check each listing against its upstream repository with the rules the skills CLI uses, last on 2026-10-28. We don't show a command we know will fail.

Repository install instructions

What we know about this skill

Publisher

onekeyhq

Taken from the source listing. We haven't verified who controls this account.

Install target

Live repository

Not pinned. Installing fetches whatever the repository holds at the time you run the command.

Nobody has reviewed this code. TrustedSkills indexes and links skills; it does not audit, run or scan them. A skill runs with whatever access you give your agent — read the source before you install it.

Automated safety checks

scanned

We could not read this skill's source, so none of the checks below were run.

Not scanned. none of the 36 skills in the repository match this slug — it was most likely renamed or removed upstream after the registry indexed it Source recorded as onekeyhq/app-monorepo.
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

About this skill

What it does

This skill, "1K Date Formatting," provides a consistent and unified way to format dates and times within OneKey applications. It prevents the use of native JavaScript date methods by leveraging utilities from @onekeyhq/shared/src/utils/dateUtils for accurate and standardized formatting. The skill offers various functions including full date/time, time-only, relative display (e.g., "Today," "Yesterday"), distance to now (e.g., "2 hours ago"), and custom format options using date-fns templates.

When to use it

  • Displaying transaction history with consistent date formatting.
  • Creating user interfaces where dates need to be presented in a unified style.
  • Generating reports or data exports requiring standardized date formats.
  • Dynamically updating date displays within React components using the provided useFormatDate hook.
  • When needing to hide specific parts of a date (year, month, time, seconds) for clarity and brevity.

Key capabilities

  • formatDate(date, options?): Formats dates with various options like hiding year/month or specifying custom formats.
  • formatTime(date, options?): Formats only the time portion of a date.
  • formatRelativeDate(date): Displays dates in relative terms (Today, Yesterday).
  • formatDistanceToNow(date): Shows the time elapsed since a given date.
  • formatDateFns(date, format?): Allows for custom formatting using date-fns templates.
  • React hook useFormatDate(): Provides dynamic date formatting updates within React components.
  • Options to hide year, month, time, and seconds.

Example prompts

  • "Format this date as yyyy-LL-dd HH:mm: 2024-01-15T14:30:00Z"
  • "Show me the relative date for January 1st, 2024."
  • "What is the time only format of this date? 2024-01-15T14:30:00Z"

Tips & gotchas

  • Important: This skill requires using the @onekeyhq/shared/src/utils/dateUtils library and its functions. Avoid using native JavaScript date methods like toLocaleDateString() or toISOString().
  • Refer to the detailed guide (date-formatting.md) for comprehensive formatting rules, options reference, and troubleshooting tips.
  • The React hook useFormatDate simplifies dynamic date updates within React components.