Icon DateTimeToAnsiStr Method

function DateTimeToAnsiStr(Value: TDateTime; MilitaryTime:
      Boolean): String

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