brTimeDate property

Returns the current date and time.

Note: See the Remarks section for RPC and ODBC connection exceptions.

Syntax

sValue = object.brTimeDate

Parameters

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.

Remarks

  • The RPC connection uses the client's time and date.

  • The ODBC connection uses the server's date and time.

Example

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

FlashBASIC reference

timedate()