1k-date-formatting
CommunityConsistent date formatting with OneKey utilities.
Authorwanghaisheng
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Date formatting in OneKey apps is inconsistent when native JavaScript date methods are used; this skill standardizes on OneKey dateUtils to ensure uniform presentation across platforms.
Core Features & Use Cases
- Unified, locale-aware formatting using formatDate/formatTime from @onekeyhq/shared
- Support for relative dates and custom formats via formatRelativeDate and formatDateFns
- Use case: display transaction timestamps, logs, and reports consistently across web and mobile.
Quick Start
Replace native date usage with OneKey's date utilities in a sample component to achieve consistent, locale-aware display.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 1k-date-formatting Download link: https://github.com/wanghaisheng/web3-scaffold-app-monorepo/archive/main.zip#1k-date-formatting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.