Dynamicweb 8 Documentation
ToDate Method

string representation of the date
Convert string to Date. Convertation is performed using yyyy-M-d H:m or yyyy-M-d format. if it fails, return value is result of applying CDate function to the argument. If it also fails, return value is DateTime.Now
Syntax
'Declaration
 
Public Shared Function ToDate( _ 
   ByVal theDate As String _ 
) As Date
public static DateTime ToDate( 
   string theDate 
)

Parameters

theDate
string representation of the date

Return Value

converted date.
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

Send Feedback