Nicer formatting for past bleeding prediction
This commit is contained in:
1 parent
dd24e6058f
commit
93abaf99be
2 files changed
+6
-2
No files matched your search
@@ -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')
|
||||
}
|
||||
Reference in new issue
Block a user