In tasm there is some usefull equates like ??date,??time,??filename.
I have searched masm reference for predefined symbol for date.I have found @Date.However

;in MASM below doesn't works
abouttxt db "Program:",9,"PROGNAME",13,10
db "Date:",9,@Date,0
;in TASM below works.
abouttxt db "Program:",9,"PROGNAME",13,10
db "Date:",9,??date,0

I guess it is alias not string equate ?
Can someone please explain how to use this equates.Like @FileCur,@Time.
Posted on 2001-08-26 10:15:10 by LaptoniC
I spent some time trying this too...

MASM puts in this...

TASM puts in this...

Its because of the quotes. And if you do this...


MASM wont recognize it.
Posted on 2001-08-26 12:38:51 by ChimpFace9000
I have also tried to put quotes but it didnt worked also.

abouttxt db "Program:",9,"PROGNAME",13,10
db "Date:",9,"@Date",0

Now it just shows @Date not current date.
Posted on 2001-08-26 16:44:38 by LaptoniC
try this:

DateText CATSTR <">, @Date, <">
abouttxt db "Program:",9,"PROGNAME",13,10
db "Date:",9,DateText,0

Posted on 2001-08-26 17:13:53 by Thomas
abouttxt   db "Program:",9,"PROGNAME",13,10

db "Date:",9,@CatStr(<">,@Date,<">),0
Posted on 2001-08-26 17:40:18 by bitRAKE
Code by Thomas works however bitrake's one prints
>, @Date, <
Posted on 2001-08-26 18:15:39 by LaptoniC
using @CatStr goes deep in MASMs macro "secrets". This works:

abouttxt db "Program:",9,"PROGNAME",13,10
db "Date:",9,@CatStr(<!">,%@Date,<!">),0

it is left to the reader to find out if really all this stuff is necessary and why.

Posted on 2001-08-28 04:50:19 by japheth
Thank you all.:alright:
Posted on 2001-08-28 07:03:44 by LaptoniC
Thanks, japheth, I knew something like that was possible. :tongue: I should add a disclaimer to all my messages I post without my assembler....hehehe.
Posted on 2001-08-29 08:13:32 by bitRAKE
how do i get @date to display in the correct date format? (ie dd/mm/yyyy .. currently it displays mm/dd/yy)

dont know how to use SUBSTR..

thanks :)
Posted on 2002-12-24 14:59:01 by X05
myDATE CATSTR @SubStr(%tempDATE,4,3),@SubStr(%tempDATE,1,3),<20>,@SubStr(%tempDATE,7,2)
% echo myDATE

...or one line:

myDATE CATSTR @SubStr(%@Date,4,3),@SubStr(%@Date,1,3),<20>,@SubStr(%@Date,7,2)
% echo myDATE

...I like this one:

myDATE CATSTR <20>,@SubStr(%@Date,7,2),<.>,@SubStr(%@Date,1,2),<.>,@SubStr(%@Date,4,2)
% echo myDATE
Posted on 2002-12-24 19:49:08 by bitRAKE