4,599
edits
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 87: | Line 87: | ||
calendar = args[4] | calendar = args[4] | ||
--checks if firstDate is not nil, and if it is returns the second date | --checks if firstDate is not nil, and if it is returns the second date | ||
if | if firstDate ~= nil then | ||
firstDate = convertShortDate(firstDate, calendar) | firstDate = convertShortDate(firstDate, calendar) | ||
secondDate = convertShortDate(secondDate, calendar) | secondDate = convertShortDate(secondDate, calendar) | ||
elseif firstDate == nil then | elseif firstDate == nil then | ||
return writeDate(convertShortDate(secondDate)) | if secondDate == nil then | ||
return nil | |||
else | |||
return writeDate(convertShortDate(secondDate)) | |||
end | |||
end | end | ||