forceInitialZeros property

String forceInitialZeros

Force zeros at the beginning of given String, for hour:minute or day/month/year display when using integers...

Implementation

String get forceInitialZeros {
  String _toReturn = "00" + this;
  return _toReturn.substring(_toReturn.length - 2, _toReturn.length);
}