Data.SqlTimSt.TryStrToSQLTimeStamp
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Data.SqlTimSt.pas Data.SqlTimSt.hpp
| |
| Unit: Data.SqlTimSt | |
| Parent: Data.SqlTimSt | |
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 */;
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.