SqlTimSt.StrToSQLTimeStamp
From Référence RAD Studio VCL
Contents |
Informations Delphi
De SqlTimSt.pas
function StrToSQLTimeStamp(const S: string): TSQLTimeStamp; overload; function StrToSQLTimeStamp(const S: string; const FormatSettings: TFormatSettings): TSQLTimeStamp; overload;
Unité : SqlTimSt
Type : fonction
Visibilité : public
Informations C++
De SqlTimSt.hpp
Sqltimst::TSQLTimeStamp __fastcall StrToSQLTimeStamp(System::UnicodeString S);
Unité : SqlTimSt
Type : fonction
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.