Gets the medium date by current culture.

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

Syntax

C#
public static string GetMediumDate(
	string strDate
)
Visual Basic
Public Shared Function GetMediumDate ( 
	strDate As String
) As String

Parameters

strDate
Type: System..::..String
The date.

Return Value

return formatted content of the date if paramter isn't empty, else return the parameter.

Examples

C# Copy imageCopy Code
var mediumDate = GetMediumDate("6/1/2011");

See Also