DateTimeExtesion extension

Common extension for DateTime

on

Methods

toDateString() String

Available on DateTime, provided by the DateTimeExtesion extension

Format: yyyy.MM.dd
toDateTimeNoSecondString() String

Available on DateTime, provided by the DateTimeExtesion extension

Format: yyyy.MM.dd HH:mm
toDateTimeString() String

Available on DateTime, provided by the DateTimeExtesion extension

Format: yyyy.MM.dd HH:mm:ss
toRelativeString(BuildContext context) String

Available on DateTime, provided by the DateTimeExtesion extension

Format: Now, few Seconds Ago, 1 minutes ago, 2 hours ago, 3 days ago,...
toStringByFormat(DateFormat format) String

Available on DateTime, provided by the DateTimeExtesion extension

To string by format
toTimeNoSecondString() String

Available on DateTime, provided by the DateTimeExtesion extension

Format: HH:mm
toTimeString() String

Available on DateTime, provided by the DateTimeExtesion extension

Format: HH:mm:ss