[Chat UI] message input "date" should allow for different date formatting
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
Issue description
Current behavior:
I saw in https://github.com/akveo/nebular/blob/master/src/framework/theme/components/chat/chat-message-text.component.ts#L15 that the date
input into nb-chat-message
is always piped into shortTime
. This is confusing if the messages span multiple days. Can something like datePipeFormat: string
(https://angular.io/api/common/DatePipe#pre-defined-format-options) be added as an input as well?
Expected behavior:
The chat messages would display the date as well to prevent confusing over messages spanning multiple days.
Steps to reproduce:
Add messages to nb-chat-message
where the dates span multiple days.
Other information:
npm, node, OS, Browser
<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
node --version
v10.16.0
npm --version
6.9.0
OS: macOS Mojave
Browser: Chrome
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Results From Across the Web
<input type="date"> - HTML: HyperText Markup Language
Date inputs provide an easy interface for choosing dates, and they normalize the data format sent to the server regardless of the user's...
Read more >Lightning:input type="date": how to change the date fomat
I'm trying to change date format of this component but I dont find any attribute (like ui:inputDate has) to change the date format....
Read more >How to set date format in HTML date input tag? - Stack Overflow
The Date accepted by an input results in a String formatted as 'yyyy-mm-dd'. We can split it and place it properly as a...
Read more >Date-Input Form Fields: UX Design Guidelines
Formatting a date-entry field may seem like a minor detail; however, even small interactions can draw a process to a standstill if ...
Read more >Making input type=date complicated | by Peter-Paul Koch
input type=”date” · Offer the user a convenient interface for entering dates. · Send predictable output to the server. All browsers I tested ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I want it too.
sounds like done. this issue should be closed