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

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

Parameters

LocDateTime
Date to show.
LocDateFormat
Format for showing date: DateFormat.Short, DateFormat.Medium, DateFormat.Long
UseTime
Specifies whether time is to be shown.
LocTimeFormat
Format for showing time. Default is: "hh:mm".
Remarks
This method is only to be called from frontend.
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