Note: The class DATE_TIME_CODE is based on the date/time to string conversion suggested by TCAM. DATE / TIME to STRING Conversion ---------------------------------------------------------------------------- DATE / TIME to STRING format conversion codes The following list format conversion codes. These are all nicked direct from Excel: Code Description dd day - numeric [0]dd day - numeric (padded with '0' to 2 figures) ddd day - text (3 letters e.g "Mon", "Tue") yyyy year - numeric (4 figures) yy year - numeric (2 figures) mm month - numeric [0]mm month - numeric (padded with '0' to 2 figures) mmm month - text (3 letters e.g "Dec", "Jan") hh hour - numeric (24 hour clock scale by default) [0]hh hour - numeric (padded with '0' to 2 figures) hh12 hour - numeric (12 hour clock scale) mi minute - numeric [0]mi minute - numeric (padded with '0' to 2 figures) ss seconds - numeric [0]ss seconds - numeric (padded with '0' to 2 figures) ff fractional seconds - numeric (precise to figures) : / - separators e.g. "03/Aug/97" , These are some examples of suggested STRING output, together with the format codes that would create that output: Code Output yy/m/dd 97/8/18 mmm-dd-yy Aug-18-97 dd,mm,yyyy 18,Aug,1997 hh-mi-ss 13-06-32 hh12,mi,ss 1,06,32 pm hh12:mi:ff 1:06:32.25 pm hh:mi:ff3 13:06:32.248 [0]mm/dd/yy hh12:mi:ff3 08/18/97 1:06:32.248 pm --|---------------------------------------------------------------- --| EiffelTime: library of reusable components for ISE Eiffel. --| Copyright (c) 1984-2009, Eiffel Software and others. --| license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" --| --| Eiffel Software --| 5949 Hollister Ave., Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Website http://www.eiffel.com --| Customer support http://support.eiffel.com --|----------------------------------------------------------------