dateTime property

DateTime? get dateTime

Represent the DateTime of the Range

Implementation

DateTime? get dateTime {
  if (isSingleRange) {
    return _dateTime;
  } else {
    return getDateTime();
  }
}
set dateTime (DateTime? value)

Sets the DateTime of the Range.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
Range range = sheet.getRangeByName('A1');
range.dateTime = DateTime(2011, 1, 20, 20, 37, 80);
List<int> bytes = workbook.saveAsStream();
File('DateTime.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

set dateTime(DateTime? value) {
  setDateTime(value);
}