|
Booth Martin wrote: > > The other ways worked but this is the slickest. Thanks. > > > MyTimeStamp = %Date() + %Time(); > Booth, there's a small risk with this method. The %Date() and %Time() would be two separate operations. If it ran over midnight between Tuesday and Wednesday so you got %Date() on Tuesday and %Time() on Wednesday, you could get 2005-06-14-00.00.01 (early Tuesday morning) where you really wanted 2005-06-14.23.59.59 (late Tuesday night) or 2005-06-15-00.00.01 (early Wednesday morning). This would work without requiring a temp: MyTimeStamp = %Timestamp(); MyTimeStamp = %Date(MyTimeStamp) + %Time(MyTimeStamp);
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.