Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
Why not use one of EZT's system-defined fields (after removing the slashes):
Quote:
General Fields
SYSDATE is an eight-byte alphabetic field that contains the system date at the start of CA-Easytrieve/Plus execution. The DATE option of the Options Table (Appendix C), determines the format of the date. A slash (/) separates the month, day, and year components of the date, such as MM/DD/YY.
SYSDATE-LONG is a 10-byte alphabetic field that contains the system date, including the century, at the start of CA-Easytrieve/Plus execution. The DATE option of the Options Table (Appendix C), determines the format of the date. A slash (/) separates the month, day, and year components of the date, such as MM/DD/CCYY.
SYSTIME is an eight-byte alphabetic field that contains the system time at the start of CA-Easytrieve/Plus execution. A period (.) separates the data into hours, minutes, and seconds, such as HH.MM.SS.