DateTimeExtensions extension

Extensions for DateTime to simplify common formatting and comparison tasks.

on

Properties

isToday → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if the date is today.
no setter
isTomorrow → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if the date is tomorrow.
no setter
isYesterday → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if the date is yesterday.
no setter

Methods

timeAgo() → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a human-readable relative time string (e.g., "5m ago", "2h ago", "Just now").