diff options
author | Bastien PROMPSY <bastienprompsy@gmail.com> | 2022-05-05 17:22:47 +0200 |
---|---|---|
committer | Bastien PROMPSY <bastienprompsy@gmail.com> | 2022-05-05 17:30:02 +0200 |
commit | 95a65a5a9e1b9d18267e62a1f37adc8d19d115a2 (patch) | |
tree | 22aae789b956449b003328e59dc3423f8585a74d /src/components | |
parent | 53390f4d0da40377abee60413e408162c170233d (diff) |
Allow to input the Date by hand
Add Parse in dateFormat
Signed-off-by: Bastien PROMPSY <bastienprompsy@gmail.com>
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Properties/PropertyDateTime.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue index 49411b10..1d8b1b6a 100644 --- a/src/components/Properties/PropertyDateTime.vue +++ b/src/components/Properties/PropertyDateTime.vue @@ -133,6 +133,9 @@ export default { stringify: (date) => { return date ? this.formatDateTime() : null }, + parse: (value) => { + return value ? moment(value, ['LL', 'L']).toDate() : null + }, }, } }, |