Dynamicweb 8 Documentation
SqlDate(DateTime,Boolean) Method

Date as DateTime
Indicates whether to skip the time part of the date
Returns a date in the appropriate database format.
Syntax
'Declaration
 
Public Overloads Shared Function SqlDate( _ 
   ByVal dateTime As Date, _ 
   ByVal skipTime As Boolean _ 
) As String
public static string SqlDate( 
   DateTime dateTime,
   bool skipTime 
)

Parameters

dateTime
Date as DateTime
skipTime
Indicates whether to skip the time part of the date

Return Value

Returns a string representation of the sqldate.
Remarks
The string format is based on the database type set up for the particular solution.
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

Database Class
Database Members
Overload List

Send Feedback