Try:
<x-tad-smaller><@ASSIGN</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>request$r_month</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller><@CALC</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller><@CURRENTDATE</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller> - 1"</x-tad-smaller><x-tad-smaller>></x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller><@VAR</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>REQUEST$r_month</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>>
</x-tad-smaller>
It is a little primitive if you are trying to find "Last Month" as it will not find Dec if you are in Jan. Make sure you format the date in the default date format for your server.
Witango Support
On 16/12/2003, at 2:25 PM, Steve Smith wrote:
I'm sure that I've used the FORMAT attribute on variables before with success. I'm using the following lines of code on Witango Mac OS X build 062:
<@ASSIGN "r_month" <@CALC <@CURRENTDATE - 1"' >
<@VAR 'REQUEST$r_month' >
and I'm expecting to see 'Nov.' as the result. Instead I see '11'. Am I:
a) trying to do the impossible
b) seeing a bug
c) using code with a typo in it
d) just overtired
Please let me know.
Thanks,
Steve Smith
Oakbridge Information Solutions
Office: (519) 624-4388
GTA: (416) 606-3885
Fax: (519) 624-3353
Cell: (416) 606-3885
Email: [EMAIL PROTECTED]
Web: http://www.oakbridge.ca
