asYYYYMM property

String get asYYYYMM

Formats as "y-MM".

Implementation

String get asYYYYMM => this <= 0
    ? '-'
    : DateUtil.yyyymm.format(DateTime.fromMillisecondsSinceEpoch(this));