Function Now(opt as Integer) as string Local a$ Do ' ensure the date/time doesn't change while we are processing a$=Date$+" "+Time$ Now=Date$+" "+Time$ Loop While a$<>Now If opt<>0 then Now=Mid$(a$,7,4)+Mid$(a$,3,4)+Left$(a$,2)+Mid$(a$,11) EndIf End Function