date static method

String date(
  1. DateTime dateTime
)

e.g. "05/03/2026"

Implementation

static String date(DateTime dateTime) =>
    DateFormat('dd/MM/yyyy').format(dateTime);