Dynamicweb 8 Documentation
ShowDate(DateTime,DateFormat,Boolean) Method

Date to show.
Format for showing date: DateFormat.Short, DateFormat.Medium, DateFormat.Long
Specifies whether time is to be shown.
Shows a date in chosen format.
Syntax
'Declaration
 
Public Overloads Shared Function ShowDate( _ 
   ByVal LocDateTime As Date, _ 
   ByVal LocDateFormat As Dates.DateFormat, _ 
   Optional ByVal UseTime As Boolean _ 
) As String
public static string ShowDate( 
   DateTime LocDateTime,
   Dates.DateFormat LocDateFormat,
   bool UseTime 
)

Parameters

LocDateTime
Date to show.
LocDateFormat
Format for showing date: DateFormat.Short, DateFormat.Medium, DateFormat.Long
UseTime
Specifies whether time is to be shown.
Remarks
This method is only to be called from the administration, displaying the date format setting in User Interface from the Control Panel.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Dates Class
Dates Members
Overload List

Send Feedback