Function: dateSelectorValues()
function dateSelectorValues(
page,
name,
date,
timeZone?
): Promise<Record<string, FieldValue>>;
Defined in: core/forms.ts:318
The values of a Moodle date selector's parts (name[day], [month], [year], [hour],
[minute]) for date, in the person's time zone (M.cfg.usertimezone), which is how Moodle
reads them. Its "enable" checkbox, when it has one, is the caller's to set first. timeZone is for a
form without Moodle's page around it (a fragment), which has no M.cfg: readPageConfig() gives it.
Parameters
| Parameter | Type |
|---|---|
page | Page |
name | string |
date | Date |
timeZone? | string |
Returns
Promise<Record<string, FieldValue>>