Skip to content

dateLogic.ts

github-actions[bot] edited this page Jun 16, 2023 · 3 revisions

Functions

processDate(element)void

Processes the date value of an input element and sends the transformed data to a Wiki Code.

getCurrentYear(outputId)void

Retrieves the current year and passes it to the wikiCode function to output it to a specified element.

processDate(element) ⇒ void

Processes the date value of an input element and sends the transformed data to a Wiki Code.

Kind: global function

Param Type Description
element HTMLInputElement

The input element containing the date value.

getCurrentYear(outputId) ⇒ void

Retrieves the current year and passes it to the wikiCode function to output it to a specified element.

Kind: global function

Param Type Description
outputId string

The ID of the HTML element where the current year will be displayed.

Clone this wiki locally