DateTimeExtensions.When Method

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

When(DateTime, Boolean)

Returns a textual representation when the specified date occured, e.g. "4:38 PM", "Yesterday", "Wednesday", "June 16", "10/06/16" etc.

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

Parameters

date
System.DateTime
abbrev
System.Boolean

Returns

System.String

A strring describing when the specified date occured.