Possibility to show "Next" with day if there is more than a week #3253
Unanswered
hassanasad
asked this question in
Q&A
Replies: 2 comments
-
Try using The previous week should return Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @fturmel - I will give it a try :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love this date-fns library. Its much robust to use.
Lately i have been tasked to show just the "day" from a date like "Tuesday". However if the date refers to a next week's Tuesday for instance, it should say "Next Tuesday" instead of just "Tuesday". I was wondering if there is a utility method in date-fns to be able to detect this?
In the documentation there are methods
isSameWeek
andisThisWeek
but i think they do something different.Beta Was this translation helpful? Give feedback.
All reactions