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

Content deleted Content added
No edit summary
No edit summary
Line 39:
local dformat = frame.args.format or default
if date == "" then date = "No date" end
--local d, y = date:match("(%d+)%d*%D+(%d+)")
local d = date:match("([1-3]%d)")
local y = date:match("(%d%d%d%d)")
local mnth = date:match("%a+") or ""
mnth = string.upper(string.sub(mnth, 1, 1)) .. string.sub(mnth, 2)