Module:IsDateValid

MyWikiBiz, Author Your Legacy — Thursday September 04, 2025
Revision as of 23:24, 15 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:IsDateValid/doc

local Date = require('Module:Date')._Date
local getArgs = require('Module:Arguments').getArgs

local p = {}

function p.main(frame)
	local str = getArgs(frame)[1]
	return p._main(str)
end

function p._main(str) 
	if (Date(str) == nil) then
		return 'Invalid'
	else 
		return 'Valid'
	end
end

return p