Icon DateTimeToAnsiStr Method

System::UnicodeString __fastcall
      DateTimeToAnsiStr(System::TDateTime Value, bool MilitaryTime)

Usage

Use the DateTimeToAnsiStr method to convert a TDateTime value to an ANSI-formatted timestamp value string. All SQL and filter expressions in DBISAM require ANSI-formatted timestamp values, which use the 'yyyy-mm-dd hh:mm:ss.zzz am/pm' format.
Image