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