This commit is contained in:
2020-12-24 19:50:12 +00:00
parent 74b97a3ed0
commit 47924aaf5e
3 changed files with 17 additions and 14 deletions

View File

@@ -227,6 +227,19 @@ export default {
});
}
},
///////////////////////////////////////////////
// Date/time past or future evaluation
//
dateIsPast(value) {
if (!value) {
return false;
}
if (value == "") {
return false;
}
return new Date(value) < new Date();
},
///////////////////////////////////////////
// Turn a decimal number into a local
// currency display