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

Date for use in drop down on the form yyyy-mm-dd
Specifies whether drop down for time should be generated.
If set to true the date "2999-12-31" will be used.
If set to true, the initial year will be "Never"
Name for the drop downs.
Returns a set of drop downs for date and time selection.
Syntax
'Declaration
 
Public Overloads Shared Function DateSelect( _ 
   ByVal DateTime As Date, _ 
   ByVal UseTime As Boolean, _ 
   ByVal SetNeverExpire As Boolean, _ 
   ByVal AllowNeverExpire As Boolean, _ 
   ByVal Name As String _ 
) As String
public static string DateSelect( 
   DateTime DateTime,
   bool UseTime,
   bool SetNeverExpire,
   bool AllowNeverExpire,
   string Name 
)

Parameters

DateTime
Date for use in drop down on the form yyyy-mm-dd
UseTime
Specifies whether drop down for time should be generated.
SetNeverExpire
If set to true the date "2999-12-31" will be used.
AllowNeverExpire
If set to true, the initial year will be "Never"
Name
Name for the drop downs.
Remarks
The drop down names will automatically be suffixed by: "_day", "_month", "_year", "_minute", "_hour" for use with ParseDate.
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