Data.SqlTimSt.TryStrToSQLTimeStamp
Delphi
function TryStrToSQLTimeStamp(const S: string; var TimeStamp: TSQLTimeStamp): Boolean;
function TryStrToSQLTimeStamp(const S: string; var TimeStamp: TSQLTimeStamp; const FormatSettings: TFormatSettings): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall TryStrToSQLTimeStamp(const System::UnicodeString S, TSQLTimeStamp &TimeStamp)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.SqlTimSt.pas Data.SqlTimSt.hpp |
Data.SqlTimSt | Data.SqlTimSt |
Description
Converts a string to a TSQLTimeStamp value.
Use TryStrToSQLTimeStamp to convert the string S to a TSQLTimeStamp value.
The FormatSettings parameter can be used to specify the locale formatting setting to consider during the conversion.
If S can be converted to a TSQLTimeStamp value, the result is returned as the TimeStamp parameter and TryStrToSQLTimeStamp returns true.
If S cannnot be converted to a TSQLTimeStamp value, TimeStamp is set to NullSQLTimeStamp and TryStrToSQLTimeStamp returns false.