Module:Date Stuff: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 (firstDate == nil and secondDate == nil) then
   if firstDate ~= nil then
  return nil
  elseif 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
    
    

Navigation menu