Nicer formatting for past bleeding prediction

This commit is contained in:
emelko
2019-04-24 12:53:04 +02:00
parent dd24e6058f
commit 93abaf99be
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -7,3 +7,7 @@ export default function (date) {
const formattedDate = today.equals(dateToDisplay) ? 'today' : moment(date).format('MMMM Do YYYY')
return formattedDate.toLowerCase()
}
export function dateForShortDescription (date) {
return moment(date.toString()).format('dddd, MMMM Do')
}