[Enhancement] Group widget messages by date (#363)

* [Enhancement] Group widget messages by date

* Update DateSeparator snapshot
This commit is contained in:
Pranav Raj S 2019-12-15 00:06:01 +05:30 committed by Sojan Jose
parent 7b63cbe1f7
commit cfc56705fd
11 changed files with 193 additions and 13 deletions

View file

@ -0,0 +1,13 @@
import moment from 'moment';
class DateHelper {
constructor(date) {
this.date = moment(date * 1000);
}
format(dateFormat = 'MMM DD, YYYY') {
return this.date.format(dateFormat);
}
}
export default DateHelper;