getDateStr method

String getDateStr()

Implementation

String getDateStr() {
  if (length > 10) return substring(0, 10).replaceAll("/", "-");
  return this;
}