Click or drag to resize
DateTimeFormatExtensions Class
A collection of formating extensions for the built in DateTime class.
Inheritance Hierarchy
SystemObject
  Entelect.ExtensionsDateTimeFormatExtensions

Namespace: Entelect.Extensions
Assembly: Entelect (in Entelect.dll) Version: 0.0.79
Syntax
C#
public static class DateTimeFormatExtensions
Methods
  NameDescription
Public methodStatic memberToStatusStyleString(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"
Public methodStatic memberToStatusStyleString(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
Top
See Also