Data.SqlTimSt.StrToSQLTimeStamp
Delphi
function StrToSQLTimeStamp(const S: string): TSQLTimeStamp;
function StrToSQLTimeStamp(const S: string; const FormatSettings: TFormatSettings): TSQLTimeStamp;
C++
extern DELPHI_PACKAGE TSQLTimeStamp __fastcall StrToSQLTimeStamp(const System::UnicodeString S)/* 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 StrToSQLTimeStamp to convert the string S to a TSQLTimeStamp value. If S does not represent a valid date-time value, StrToSQLTimeStamp raises an EConvertError exception.
The FormatSettings parameter can be used to specify the locale formatting setting to consider during the conversion.
Tip: To convert strings to TSQLTimeStamp values without raising an exception when the string is not a valid date-and-time, use TryStrToSQLTimeStamp instead.