Module:NormalizationDate: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Manual revert
// via Wikitext Extension for VSCode
 
Line 1: Line 1:
-- Module:NormalizationDate
--[[
-- Parses and normalizes dates to "Month DD, YYYY" format (or year only if no full date).
* Name: NormalizationDate
-- Toggle between full names ("January") and abbreviations ("Jan.") with setUseShortMonthNames().
* Author: Mark W. Datysgeld
--
* Description: Date parser and normalizer supporting various formats, outputs "Month DD, YYYY" format or year-only when no full date available
-- Usage: local dn = require('Module:NormalizationDate')
* Notes: Toggle between full names ("January") and abbreviations ("Jan.") with setUseShortMonthNames(); supports text-based formats, numeric formats, and year-only; includes caching for performance; reads configuration from ConfigRepository
-- dn.formatDate("2023-01-15")              -- "January 15, 2023"
]]
-- dn.setUseShortMonthNames(true)          -- Enable abbreviations
-- dn.formatDate("2023-01-15")              -- "Jan. 15, 2023"


local p = {}
local p = {}