Resolve "Cycle day overview"
This commit is contained in:
committed by
Sofiya Tepikin
parent
5af29f9628
commit
750ceeaaf4
@@ -425,13 +425,3 @@ export const nextDate = (dateString) => {
|
||||
export const isDateInFuture = (dateString) => {
|
||||
return LocalDate.now().isBefore(LocalDate.parse(dateString))
|
||||
}
|
||||
|
||||
export const isTomorrowInFuture = (dateString) => {
|
||||
const tomorrow = nextDate(dateString)
|
||||
return LocalDate.now().isBefore(LocalDate.parse(tomorrow))
|
||||
}
|
||||
|
||||
export const isYesterdayInFuture = (dateString) => {
|
||||
const yesterday = prevDate(dateString)
|
||||
return LocalDate.now().isBefore(LocalDate.parse(yesterday))
|
||||
}
|
||||
@@ -20,5 +20,5 @@ export function dateToTitle(dateString) {
|
||||
const dateToDisplay = LocalDate.parse(dateString)
|
||||
return today.equals(dateToDisplay) ?
|
||||
labels.today :
|
||||
moment(dateString).format('MMMM Do')
|
||||
moment(dateString).format('dddd, Do MMM YYYY')
|
||||
}
|
||||
Reference in New Issue
Block a user