Hi again, Sorry, I messed this up a bit... David Neary wrote: > > ascftime(& datestring, "%D", timestruct); should be ascftime(datestring, "%D", ×truct); and is better (for buffer overflow reasons) as strftime(datestring, 50, "%d", ×truct); Dave. -- Dave Neary, Software engineer, Informix Dublin. Ireland. Phone: +353-1-409-1357