>>>lcDateStr = ttoc(datetime(), 1) >>>>>
>?transform(ttoc(datetime(),1), '@R ####_##_##_##:##:##') >?transform(ttoc(datetime(),1), '@R ####-##-##_##:##:##') >For cases where I just need a sufficiently unique name (which doesn't have to mean anything), I use this function:
Procedure n2s Lparameters tNR Local nMod, numdat, sl, trnn2s trnn2s = "ABCDEFGHIJK123456789LMNOP0QRSTUVWXYZ" nMod=Len(trnn2s) numdat=tNR sl="" Do While numdat>0 ns=numdat%nMod sl=Substr(trnn2s,ns+1,1)+sl numdat=Int(numdat/nMod) Enddo Retu sl EndprocThere's actually a version with fixed length of the resulting string, and trnn2s is a property of the class, and the string itself is not as it looks here, but that's the general idea.
lcFile=forceext(lcFile+"_"+n2s(int(seconds())), "ext")