ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 26 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / Managing databases / Handling a CEDB database
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
cdbDateTimeToInteger (Function)
In french: cdbDateHeureVersEntier
Transforms a DateTime variable into a value compatible with a Date and Time column (unsigned 8-byte integer).
Example
// Add a record into Customer file
cdbWriteCol("MyDatabase", "Customer", "LastName", "Smith")
cdbWriteCol("MyDatabase", "Customer", "FirstName", "Paul")
cdbWriteCol("MyDatabase", "Customer", "City", "Avignon")

RegistrationDate is DateTime = "200112311524"
// Transform this variable
cdbWriteCol("MyDatabase", "Customer", "Registration", cdbDateTimeToInteger(RegistrationDate))
cdbAdd("MyDatabase", "Customer")
Syntax
<Result> = cdbDateTimeToInteger(<Value to convert>)
<Result>: Unsigned 8-byte integer
Value compatible with a Date and Time column (unsigned 8-byte integer). This value corresponds to the number of tenths of microsecond since January 1, 1601.
<Value to convert>: DateTime
Value to convert into a compatible value.
Remarks
Caution: cdbDateTimeToInteger returns no error code. To find out whether an error was generated by this function, use the ErrorOccurred variable.
Component: wd260ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/01/2021

Send a report | Local help