CometChat Docs home page
Search...
⌘K
Ask AI
Dashboard
Contact Support
Contact Support
Search...
Navigation
DatePatterns
Home
Platform
UI Kits
SDKs
Widgets
APIs
Overview
Add CometChat Widget to a Static HTML Website
Add CometChat Widget to WordPress via Plugin
Add CometChat Widget to Squarespace
Add CometChat Widget to Wix
Add CometChat Widget to Webflow
Legacy
Overview (Legacy)
WordPress / BuddyPress (Legacy)
HTML / Bootstrap / JQuery (Legacy)
Advanced
Custom Build (Legacy)
DatePatterns
OpenAI
Open in ChatGPT
OpenAI
Open in ChatGPT
DatePatterns describes a specific format or arrangement used to represent dates in a human-readable form.
Name
Description
time
Date format displayed in the format hh:mm a
DayDate
Date format displayed in the following format.1) If timestamp < 24hrs display “Today”
If timestamp < 48hrs display “Yesterday”
If timestamp < 7days display “EEE” i.e , SUNDAY
else display “d MMM, yyyy” | | DayDateTime | Date format displayed in the following format.1) If timestamp < 24hrs display “hh:mm a”
If timestamp < 48hrs display “Yesterday”
If timestamp < 7days display “EEE” i.e SUNDAY
else display “dd MM yyyy” |
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Assistant
Responses are generated using AI and may contain mistakes.