dateTime static method
Creates a QVar containing a DateTime value formatted as ISO 8601 string.
datetime
The DateTime to format.
Returns a QVar with the ISO 8601 string representation.
Example:
var dateVar = QVar.dateTime(DateTime(2023, 12, 1)); // '2023-12-01T00:00:00.000Z'
Implementation
static QVar dateTime(DateTime datetime) => QVar(datetime.toIso8601String());