diff --git a/class/Cost/Cost.php b/class/Cost/Cost.php index 6b31fc6..51ae499 100644 --- a/class/Cost/Cost.php +++ b/class/Cost/Cost.php @@ -34,4 +34,9 @@ public function getAddedOn():string { public function getDateFormatted():string { return $this->date->format("jS M Y"); } + + #[BindGetter] + public function getDateValue():string { + return $this->date->format("Y-m-d"); + } } diff --git a/page/_component/cost-editor.html b/page/_component/cost-editor.html index b82a7b7..9976464 100644 --- a/page/_component/cost-editor.html +++ b/page/_component/cost-editor.html @@ -1,7 +1,7 @@