Skip to content

Update Message.jsx - #53

Open
Abdullatif-K123 wants to merge 2 commits into
safak:react-chatfrom
Abdullatif-K123:Abdullatif-K123-patch-1
Open

Abdullatif-K123 wants to merge 2 commits into
safak:react-chatfrom
Abdullatif-K123:Abdullatif-K123-patch-1

Conversation

@Abdullatif-K123

Copy link
Copy Markdown

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