correction: modify setDateOffset to fit the description. Previously was returning the Sunday of the following week.
correction: create a new Date() object to avoid modifying the date passed into setDateOffset()
correction: set newBeginningDate to previous plus 1 to suit the corrected function setDateOffset
correction: create a new Date() object to prevent parameter from being updated
feat: set period based on selected date inputs
refactor: ui friendly display of period
refactor: improve readability - better comments, alphabetical arrangement of methods, group similar tasks to be later made into methods
feat: getMonthName()
correction: place actions common to all intervals outside if condition
refactor: send table, interval as parameters to changeTableLook instead of obtaining table value inside changeTableLook
refactor: rearrange methods in alphabetical order; separate main methods from smaller methods
refactor: better ui readability for period
refactor: comments
refactor: remove getMonthName() and getDayName() as they are not used
correction: add 1 to variable instead of using setMonth on date
refactor: subtract 1 from variable instead of passing a calculation in parameters
reverse: getMonthName()
refactor: move common code outside interval if block
feat: support commonality among all intervals for addColumns
refactor: correct multiple comment style