yyyy top-level constant

String const yyyy

Outputs year as four digits

Example: formatDate(DateTime(1989), yyyy); // => 1989

Implementation

const String yyyy = 'yyyy';