formatYear method

String formatYear (DateTime date)

Full unabbreviated year format, e.g. 2017 rather than 17.

Implementation

String formatYear(DateTime date);