Returns a string with the pretty printed amount of time since the specified date.

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string CalculateDateForDisplay(
	DateTime date
)
Visual Basic
Public Shared Function CalculateDateForDisplay ( 
	date As DateTime
) As String

Parameters

date
Type: System..::..DateTime
DateTime in UTC

Return Value

String representing the required date for display

See Also