Data.SqlTimSt.StrToSQLTimeStampOffset

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrToSQLTimeStampOffset(const S: string): TSQLTimeStampOffset;
function StrToSQLTimeStampOffset(const S: string; const FormatSettings: TFormatSettings): TSQLTimeStampOffset;

C++

extern DELPHI_PACKAGE TSQLTimeStampOffset __fastcall StrToSQLTimeStampOffset(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 TSQLTimeStampOffset value.

Use StrToSQLTimeStampOffset to convert the string S to a TSQLTimeStampOffset value. If S does not represent a valid date-time value, StrToSQLTimeStampOffset 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 TSQLTimeStampOffset values without raising an exception when the string is not a valid date-time, use TryStrToSQLTimeStampOffset instead.

See Also