Difference between revisions of "Module:IsDateValid"
MyWikiBiz, Author Your Legacy — Friday November 21, 2025
Jump to navigationJump to search (Pywikibot 6.4.0) |
(No difference)
|
Latest revision as of 23:24, 15 July 2021
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