whereToday method

MssqlCondition whereToday()

The date part equals today, as the server reckons it.

CAST(GETDATE() AS date) rather than a Dart DateTime.now(): the application and the database can sit in different time zones, and a report that says "today" means the server's today.

Implementation

MssqlCondition whereToday() => _relativeToToday('=');