RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SqlTimSt.StrToSQLTimeStamp Function

Converts a string to a TSQLTimeStamp value.

Pascal
function StrToSQLTimeStamp(const S: string): TSQLTimeStamp;
C++
TSQLTimeStamp StrToSQLTimeStamp(const AnsiString S);

Use StrToSQLTimeStamp to convert the string S to a TSQLTimeStamp value. If S does not represent a valid date-and-time value, StrToSQLTimeStamp raises an EConvertError exception.

Tip: To convert strings to TSQLTimeStamp values without raising an exception when the string is not a valid date-and-time, use TryStrToSQLTimeStamp instead.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!