Converts the DateTime to a pretty date format compared to e.g. 1 day ago.

Namespace: MonoSoftware.MonoX.Extensions
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static string ToPrettyUniversalTimeString(
	this DateTime date
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function ToPrettyUniversalTimeString ( 
	date As DateTime
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ ToPrettyUniversalTimeString(
	DateTime date
)
F#
static member ToPrettyUniversalTimeString : 
        date : DateTime -> string 

Parameters

date
Type: System..::..DateTime
Date to format

Return Value

Type: String
Date formatted with pretty format

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also