fnDateSerialValue function

dynamic fnDateSerialValue(
  1. dynamic y,
  2. dynamic m,
  3. dynamic d
)

Expression function DateSerialValue(y, m, d): Combines year, month, day into a TDateTime. In this Dart engine it returns a date serial number (days since 1899-12-30); see the manual, Appendix C.2.

Implementation

dynamic fnDateSerialValue(dynamic y, dynamic m, dynamic d) {
  final dt = DateTime(varToInt(y), varToInt(m), varToInt(d));
  return _toDelphiSerial(dt);
}