Click or drag to resize
DateTimeFormatExtensionsToStatusStyleString Method
Overload List
  Name Description
Public method Static member 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"
Public method Static member 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
Top
See Also