Skip to content

yearOf

Category: Date & Time

Returns the year component of a Date or DateTime

  • Return type: Integer
Patient.birthDate.yearOf()
now().yearOf()
@2023-05-15.yearOf()