Module:DateThings: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 49: Line 49:
if Year==OldYear then
if Year==OldYear then
if Month==OldMonth then
if Month==OldMonth then
OutputText = OutputText .. Day --Only the day is different
OutputText = OutputText .. os.date("[[%B ", ThisDate) .. Day .. "|" .. Day .. "]]" --Only the day is different
else
else
OutputText = OutputText .. Month .. "-" .. Day --Day and month are different
OutputText = OutputText .. os.date("[[%B ", ThisDate) .. Day .. "]]" --Day and month are different
end
end
else
else
--OutputText = OutputText .. Year .. "-" .. Month .. "-" .. Day --All three are different
OutputText = OutputText .. os.date("[[%Y]] [[%B ", ThisDate) .. Day .. "]]" --All three are different
OutputText = OutputText .. os.date("[[%Y]] [[%B ", ThisDate) .. Day .. "]]"
end
end

Navigation menu