Browse Source

feat: include WEEKDAY

pull/2706/head
Wing-Kam Wong 2 years ago
parent
commit
d2dd36b550
  1. 15
      packages/nc-gui/helpers/formulaList.js

15
packages/nc-gui/helpers/formulaList.js

@ -471,6 +471,21 @@ const formulas = {
'URL("https://github.com/nocodb/nocodb")', 'URL("https://github.com/nocodb/nocodb")',
'URL({column1})' 'URL({column1})'
] ]
},
WEEKDAY: {
type: formulaTypes.NUMERIC,
validation: {
args: {
min: 1,
max: 2,
}
},
description: 'Convert to a hyperlink if it is a valid URL',
syntax: 'WEEKDAY(date, [startDayOfWeek])',
examples: [
'WEEKDAY("2021-06-09")',
'WEEKDAY(CURDATE(), "Monday")'
]
} }
} }

Loading…
Cancel
Save