Returns the current date and time.
sValue = object.brTimeDate
Parameter | Description |
---|---|
sValue | The return value is a String data type indicating the current date and time. |
object | An object variable that represents a clsD3Connection object. |
The RPC connection uses the client's time and date.
The ODBC connection uses the server's date and time.
Private Sub CreateDeleteFile_Click() Dim oEnv As New clsD3Environment Dim oConn As clsD3Connection Dim oFile As clsD3File Dim aTimeDate As New clsD3DynamicArray Set oConn = oEnv.brOpenConnection("ODBC", "production") Set oFile = oConn.brCreateFile("", "daily.log", 3, 31) aTimeDate.brCString = oConn.brTimeDate oFile.brWrite aTimeDate, "1" ... oConn.brDeleteFile "daily.log" oEnv.brCloseConnection oConn Set oEnv = Nothing End Sub
timedate()