Module:IsDateValid

MyWikiBiz, Author Your Legacy — Friday June 13, 2025
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