setFormulaDateValue method

void setFormulaDateValue(
  1. DateTime dateTime
)

Set formula DateTime value to the range.

Implementation

void setFormulaDateValue(DateTime dateTime) {
  _dateTime = dateTime;
  _number = toOADate(dateTime);
  if (_cellStyle != null) {
    _cellStyle = CellStyle(workbook);
  }
  _cellStyle!.numberFormatIndex = 14;
}