MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / assignDateField

Method assignDateField

src/utils/TasksPluginParser.ts:409–418  ·  view source on GitHub ↗
(
		state: ParsingState,
		field: "dueDate" | "scheduledDate" | "startDate" | "createdDate" | "doneDate",
		value: string
	)

Source from the content-addressed store, hash-verified

407 }
408
409 private static assignDateField(
410 state: ParsingState,
411 field: "dueDate" | "scheduledDate" | "startDate" | "createdDate" | "doneDate",
412 value: string
413 ): void {
414 const date = this.normalizeDate(value);
415 if (date) {
416 state.parsed[field] = date;
417 }
418 }
419
420 private static consumeField(
421 state: ParsingState,

Callers 1

applyDataviewFieldMethod · 0.95

Calls 1

normalizeDateMethod · 0.95

Tested by

no test coverage detected