ss="language-dart"><code class="language-dart">static String format(DateTime date) {
  const List wkday = const [&quot;Mon&quot;, &quot;Tue&quot;, &quot;Wed&quot;, &quot;Thu&quot;, &quot;Fri&quot;, &quot;Sat&quot;, &quot;Sun&quot;];
  const List month = const [
    &quot;Jan&quot;,
    &quot;Feb&quot;,
    &quot;Mar&quot;,
    &quot;Apr&quot;,
    &quot;May&quot;,
    &quot;Jun&quot;,
    &quot;Jul&quot;,
    &quot;Aug&quot;,
    &quot;Sep&quot;,
    &quot;Oct&quot;,
    &quot;Nov&quot;,
    &quot;Dec&quot;