Number d = 정수(Decimal) e = 과학수치(실수)(Exponent,Scientific) f = 부동소수점(Fixed) g = 일반실수(General) m = 통화(Money) n = 숫자(Number,floating) p = 포인터(Pointer) s = 문자열(String) u = 부호없는 정수(Unsigned decimal) x = 16진수(Hexadecimal) Datetime formatdatetime command Example code : Showing all of the date field formatting data types
var myDate : TDateTime; begin // Set up our TDateTime variable with a full date and time : // 5th of June 2000 at 01:02:03.004 (.004 milli-seconds) myDate := EncodeDateTime(2000, 6, 5, 1, 2, 3, 4); // Date only - numeric values with no leading zeroes (except year) ShowMessage(' d/m/y = '+ formatdatetime('d/m/y', myDate)); // Date only - numeric values with leading zeroes ShowMessage(' dd/mm/yy = '+ formatdatetime('dd/mm/yy', myDate)); // Use short names for the day, month, and add freeform text ('of') ShowMessage(' ddd d of mmm yyyy = '+ formatdatetime('ddd d of mmm yyyy', myDate)); // Use long names for the day and month ShowMessage('dddd d of mmmm yyyy = '+ formatdatetime('dddd d of mmmm yyyy', myDate)); // Use the ShortDateFormat settings only ShowMessage(' ddddd = '+ formatdatetime('ddddd', myDate)); // Use the LongDateFormat settings only ShowMessage(' dddddd = '+ formatdatetime('dddddd', myDate)); // Use the ShortDateFormat + LongTimeFormat settings ShowMessage(' c = '+ formatdatetime('c', myDate)); end; Show full unit code d/m/y = 5/6/00 dd/mm/yy = 05/06/00 ddd d of mmm yyyy = Mon 5 of Jun 2000 dddd d of mmmm yyyy = Monday 5 of June 2000 ddddd = 05/06/2000 dddddd = 05 June 2000 c = 05/06/2000 01:02:03 Example code : Showing all of the time field formatting data types
...