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

Update Message.jsx #53

Open
wants to merge 2 commits into
base: react-chat
Choose a base branch
from

Conversation

Abdullatif-K123
Copy link

Change the date of the message:

  • if the message send less than one minute it show: "Just Now"
  • if the message was send more than one minute and in the same day it show the time like : hour-minute-seconds PM or AM
  • if the message was send not the same day it show the date in this format: year/month/day

Change the date of the message: 
- if the message send less than one minute it show: "Just Now"
-if the message was send more than one minute and in the same day it show the time like : hour-minute-seconds PM or AM 
-if the message was send not the same day it show the date in this format:   year/month/day
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

Successfully merging this pull request may close these issues.

1 participant