generated from dave/wails-template
Default scrolling payment date to first of month
This commit is contained in:
@@ -4,6 +4,8 @@ import { type Writable, writable } from "svelte/store";
|
||||
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
|
||||
const thism = new Date();
|
||||
const lastm = new Date();
|
||||
thism.setDate(1);
|
||||
lastm.setDate(1);
|
||||
thism.setMonth(thism.getMonth() - 1);
|
||||
lastm.setMonth(lastm.getMonth() - 2);
|
||||
|
||||
|
Reference in New Issue
Block a user