fluentFormatDate function

String fluentFormatDate(
  1. DateTime date
)

Renders a date as M/d/yyyy.

A deliberate divergence. Upstream defaults to date.toString(), which in Dart emits 2026-03-14 00:00:00.000 — a string nobody types. Its parser default is Date.parse, whose Dart counterpart accepts ISO-8601 only. The pair would therefore not round-trip, and allowTextInput would be broken out of the box. This and fluentParseDate are reciprocal, and both are public so an application can wrap rather than replace them.

Implementation

String fluentFormatDate(DateTime date) =>
    '${date.month}/${date.day}/${date.year}';