mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 23:17:33 +08:00
add trend in income and expense card in overview page
This commit is contained in:
@@ -133,6 +133,11 @@ export function getDayOfWeekName(date) {
|
||||
return dateTimeConstants.allWeekDaysArray[dayOfWeek].name;
|
||||
}
|
||||
|
||||
export function getMonthName(date) {
|
||||
const dayOfWeek = moment(date).month();
|
||||
return dateTimeConstants.allMonthsArray[dayOfWeek];
|
||||
}
|
||||
|
||||
export function getHour(date) {
|
||||
return moment(date).hour();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user