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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Data.SqlTimSt.pas Data.SqlTimSt.hpp |
Data.SqlTimSt | Data.SqlTimSt |
Description
Convertit une chaîne en valeur TSQLTimeStamp.
Utilisez StrToSQLTimeStamp pour convertir la chaîne S en une valeur TSQLTimeStamp. Si S ne représente pas une valeur date/heure valide, StrToSQLTimeStamp déclenche une exception EConvertError.
Le paramètre FormatSettings peut être utilisé pour spécifier le paramétrage de formatage local à considérer durant la conversion.
Conseil : Pour convertir des chaînes en valeurs TSQLTimeStamp sans provoquer d'exception quand la chaîne n'est pas une valeur date/heure valide, utilisez plutôt TryStrToSQLTimeStamp.