Module:IsDateValid
MyWikiBiz, Author Your Legacy — Tuesday November 11, 2025
Jump to navigationJump to searchDocumentation 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