Content deleted Content added
all 3 formats |
escape and month check |
||
Line 54:
-- Finally try ymd
matchYear, matchMonth, matchDay = input:match('^([0-9][0-9][0-9][0-9])%-([0-9][0-9])%-([0-9][0-9]), $')
if (matchDay ~= nil) then
Line 95:
if (year > 2100) then
return input .. ' -> year is too far into future' end
if (month == 0) then
return input .. ' -> month is invalid == 0' end
if (month > 12) then
return input .. ' -> month is invalid > 12' end
if (day == 0) then
|