Feature: Schnellere Eingabe der Daten ist möglich

This commit is contained in:
2021-12-16 12:20:37 +01:00
parent ad253a82f5
commit d133cb017b
3 changed files with 27 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
<script context="module">
export class TimekeepingDate extends Date {
getDateString() {
return this.getFullYear() + "-"
+ (this.getMonth() + 1).toString().padStart(2, '0') + "-"
+ this.getDate().toString().padStart(2, '0')
}
getNextDay() {
let nextDay = new TimekeepingDate(this);
nextDay.setDate(this.getDate() + 1)
return nextDay
}
}
</script>