Allow me to chime in for a moment and share information about running payroll in QuickBooks Online (QBO), Fausta.
In QuickBooks, you can only enter payroll from the current year, this is because QuickBooks Online is a could based storage system and we only keep records of payroll for the current year we're in. In your case, you can run payroll and change the pay period and pay date. You need to modify them and set the dates.
Go to the Payroll menu, select the Employees tab.
Select the employee's name.
Under Employee details, Select Pay.
Select the How often do you pay [employee]? ▼ dropdown. Then select the pay schedule for the employee moving forward. Or, to create a new pay schedule, select Add new. Fill out the appropriate fields. Then select OK.