MySQL String routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declarations
{ Converts string in SQL date/time format (YYYY-MM-DD HH:MM:SS) to TDateTime variable }  
function SQLDateTimeToDateTime(Value: String): TDateTime;  
{ Converts TDateTime value to SQL date/time format (YYYY-MM-DD HH:MM:SS) }  
function DateTimeToSQLDateTime(const Value: TDateTime): String;  
{ Converts TDateTime value to SQL date format (YYYY-MM-DD) }  
function DateTimeToSQLDate(const Value: TDateTime): String;  
{ Converts TDateTime value to SQL date format (HH:MM:SS) }  
function DateTimeToSQLTime(const Value: TDateTime): String;  
{ Escapes string for MySQL query and puts it to quotes }  
function ESC(const Str: String): String;