Formats
|
Previous Top Next |
· | Point character ('.') is fixed as a decimal separator.
|
· | ISO format could be used for date/time constants: YYYY-MM-DD HH:MM:SS to avoid problems with locale settings.
|
· | In other cases Absolute Database uses the current system locale settings to format date, time, and currency.
|
· | Use the fixed decimal point character '.' for float and currency constants
|
· | Use the ISO format YYYY-MM-DD for date, HH:MM:SS for time constants
|
· | Use the default locale settings to convert date, time, ... value to a string
|
· | Use query parameters
|
· | Specify the format via special format string and SQL function
|
ABSTable1.Filter := 'Weight > 3.5';
|
|
|
ABSQuery1.SQL.Text := 'INSERT INTO Orders (ID, BillDate) VALUES (1, ''2003-07-31'')';
|
|
|
ABSQuery1.SQL.Text := 'INSERT INTO Orders (ID, BillDate) VALUES (1, '+QuotedStr(DateToStr(Date))+')';
|
|
|
ABSQuery1.SQL.Text := 'INSERT INTO Orders (ID, BillDate) VALUES (2, :BillDate)';
|
ABSQuery1.Params[0].AsDateTime := Date;
|
|
|
INSERT INTO Orders (ID, BillDate) VALUES (3, TODATE('12/16/2002 11:10:30 am','MM/DD/YYYY hh:nn:ss ampm'))
|
|
|