Gets the medium date by current culture.
Namespace: DotNetNuke.CommonAssembly: 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# | ![]() |
---|---|
var mediumDate = GetMediumDate("6/1/2011"); |