DateTimeFormatting extension

on

Methods

toFormattedString({String format = 'EEE, dd MMM'}) String

Available on DateTime, provided by the DateTimeFormatting extension

Convert DateTime to formatted string Example format: 'Tue, 28 Aug'
toTimeString({String format = 'HH:mm'}) String

Available on DateTime, provided by the DateTimeFormatting extension

Convert DateTime to a custom time string Example: 'HH:mm'