Module:Sandbox/Boboquack/Dates: Difference between revisions

Content deleted Content added
Boboquack (talk | contribs)
No edit summary
Boboquack (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 97:
--fifth try: parse as year
if string.match(indate,"(%d+)%D*[^% %d]+%D*(%d+)") then return "Invalid entry" end
local num0=string.match("A"..indate,".*%D(%d+)")
if p.valid(nil,nil,num0) then year,inform=num0,"year" else
return "Invalid entry"