iamkun / iamkun/dayjs

moment.creationData() replacement ?

Open
#1,896 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I want to get the `format` of a dayjs instance. Is there a similar method like creationDate() provided by moment?

```
moment("2013-01-02", "YYYY-MM-DD", true).creationData() === {
input: "2013-01-02",
format: "YYYY-MM-DD",
locale: Locale obj,
isUTC: false,
strict: true
}
```

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by locating the Day.js parsing and instance API, then compare the available state with the Moment creationData() fields shown in the issue. Done means a documented equivalent can expose the requested input, format, locale, UTC, and strictness information.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.