diff --git a/packages/nc-gui-v2/components/smartsheet-column/DateOptions.vue b/packages/nc-gui-v2/components/smartsheet-column/DateOptions.vue new file mode 100644 index 0000000000..d8f3b9143c --- /dev/null +++ b/packages/nc-gui-v2/components/smartsheet-column/DateOptions.vue @@ -0,0 +1,25 @@ + + + diff --git a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue index 638d081e5f..4cd8369692 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue @@ -92,6 +92,7 @@ watchEffect(() => { +
{ return dayjs.utc(date).fromNow() } +export const dateFormats = [ + 'DD-MM-YYYY', + 'MM-DD-YYYY', + 'YYYY-MM-DD', + 'DD/MM/YYYY', + 'MM/DD/YYYY', + 'YYYY/MM/DD', + 'DD MM YYYY', + 'MM DD YYYY', + 'YYYY MM DD', +] + export const handleTZ = (val: any) => { if (!val) { return