Module:Sandbox/Dan1730/Dates

local p = {}

function p.unpack(frame) local dmy = frame.args.dmydate or "" local d, m, y = string.match(dmy, "(%d+) (%w+) (%d+)") return "Year = " .. y .. " Day = " .. d .. " Month = " .. m end

function p.nameSeparation(frame) local fullname = frame.args.name local lang = frame.args.format if(lang == "en") then local firstname = string.match(fullname, "(%w+)", fullname.length - 2) return "Nice" end end

return p