Работа с форматами данных
Each function listed below sets or retrieves date or time, or decodes/encodes date and time into or from a timestamp.
DbiBcdFromFloat:
Converts FLOAT data to binary coded decimal (BCD) format.
DbiBcdToFloat:
Converts binary coded decimal (BCD) data to FLOAT format.
DbiDateDecode:
Decodes DBIDATE into separate month, day and year components.
DbiDateEncode:
Encodes separate date components into date for use by DbiPutField and other functions.
DbiGetDateFormat:
Gets the date format for the current session.
DbiGetNumberFormat:
Gets the number format for the current session.
DbiGetTimeFormat:
Gets the time format for the current session.
DbiSetDateFormat:
Sets the date format for the current session.
DbiSetNumberFormat:
Sets the number format for the current session.
DbiSetTimeFormat:
Sets the time format for the current session.
DbiTimeDecode:
Decodes time into separate components (hours, minutes, milliseconds).
DbiTimeEncode:
Encodes separate time components into time for use by DbiPutField and other functions.
DbiTimeStampDecode:
Extracts separate encoded date and time components from the timestamp.
DbiTimeStampEncode:
Encodes the encoded date and encoded time into a timestamp.
Взято с Delphi Knowledge Base: https://www.baltsoft.com/