DateTimeExtensions.From Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

From(DateTime, DateTime, Boolean)

Returns a textual representation of a date relative to another date.

public static string From(this DateTime date, DateTime from, bool abbrev = false)

Parameters

date
System.DateTime
from
System.DateTime
abbrev
System.Boolean

Returns

System.String

Returns the relative time from the specified date, e.g. "3 hours ago".