Extract the date portion (YYYY-MM-DD) from a DateTime object.
static String toDateString(DateTime date) { return date.toUtc().toIso8601String().split('T').first; }