DateTimeFormatExtensions Class |
Namespace: Entelect.Extensions
public static class DateTimeFormatExtensions
Name | Description | |
---|---|---|
![]() ![]() | ToStatusStyleString(DateTime) |
Returns a status-message (eg Facebook, + etc) style format for a timestamp, using the current UTC time as reference.
The string is shown as a difference between timestamp and reference time for renderings such as "yesterday", "x minutes/hours ago", "Monday etc"
|
![]() ![]() | ToStatusStyleString(DateTime, DateTime) |
Returns a a status-style string for a given time (as on facbeook , + etc), using a forced reference time.
The string is shown as a difference between timestamp and reference time for renderings such as "yesterday", "x minutes/hours ago", "Monday etc"
Use the overload without a reference parameter to default to UTC NOW
|