ApexSensei

Drills Apex basics

Set the renewal date

A Date holds a calendar day.

Your task

Set renewalDate to 15 March 2027 using Date.newInstance.

String companyName = 'RidgePoint Capital';
Date renewalDate = null;
Integer seats = 5;
Boolean active = true;

Requirements

  1. renewalDate should be Date.newInstance(2027, 3, 15)
  2. The declaration should be kept as Date renewalDate
  3. renewalDate should be assigned a value
  4. The date should be built from numbers, not quoted text
  5. companyName should be 'RidgePoint Capital'

Sign in to open this drill