Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I relativeTime to date formate #1531

Open
hern12 opened this issue Jun 14, 2021 · 0 comments
Open

How can I relativeTime to date formate #1531

hern12 opened this issue Jun 14, 2021 · 0 comments

Comments

@hern12
Copy link

hern12 commented Jun 14, 2021

It's not a bug. I use dayJs(someDate).fromNow() and it return like 1 hour ago and it's correct but for some reason I want to customize some range to a normal date like 10/05/2021 I try to add function to dd: in config but the parameter value does not date

Expected behavior
if date more than 7 days display a normal date like 10/05/2021

Information

  • Day.js Version [e.g. v1.10.5]
  • Browser [e.g. chrome 62]

How can I do that. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant