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

Content deleted Content added
No edit summary
No edit summary
Line 46:
d, y = tonumber(d) or 1, tonumber(y) or 0
local m = month_idx[mnth:sub(1,3):lower()] or 0
if m == 0 then m = tonumber(date:match("%D0(%d)")) or 0 end
local v = day_try(d, m, y)
local out = date .. " = " .. d .. " " .. m .. " " .. y .. " " .. mnth