[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Adding 'N' days to the present date
> From: Venu
>
> Hi List,
>
> I want to add 'N'days to the time tag. How do i do it?
> For example if today is December 2nd, 2002 I want to add 'N' days to
the
> present date. Presently I am doing the following way
>
> [tmp myDay] [tag time]%d [/tag] [/tmp]
> [tmp myMonth] [tag time]%B [/tag] [/tmp]
> [tmp myYear] [tag time]%Y[/tag] [/tmp]
>
> You will receive this item by [scratch myMonth][calc][scratch
> myDay]+2[/calc] [scratch myYear] , if order today
>
> The problem here is that in the month end it is showing the date as
> November
> 31, 2002 which is meaning less.
>
> So kindly help me in showing the date properly when I add 'N' days to
the
> time tag. If there is any alternate tag or solution also most welcome.
>
> I am using Linux 7.1, Interchange 4.8.6, Perl 5.6.0.
>
> Thanx in advance.
>
> Venu
Take a look at the adjust parameter of the time tag. You could do
something like this:
[time adjust='72']%a, %d-%b-%Y %T %Z[/time]
Good luck,
-Ron