Module:Sandbox/Cyborg Coder/Dates: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 41:
local d, y = date:match("(%d+)%D+(%d+)")
local mnth = date:match("%a+") or ""
mmnth = string.upper(string.sub(mmnth, 1, 1)) .. string.sub(mmnth, 2)
d, y = tonumber(d) or 1, tonumber(y) or 0
local m = month_idx[mnth:sub(1,3):lower()] or 0
local v = day_try(d, m, y)
m = string.upper(string.sub(m, 1, 1)) .. string.sub(m, 2)
local out = date .. " = " .. d .. " " .. m .. " " .. y .. " " .. mnth
out = out .. " = " .. v