[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] DATE TAG
Hi guys;
How do you convert date tag that is inputed trough form into that date +
12 months.
I tried following:
<INPUT TYPE=text NAME=maintenance_due_date VALUE="[value
maintenance_due_date]" size="30" maxlength="30">
Now I want to have maintenance_due_date +12 months on top it to create
new date. His is what I tried:
[convert-date fmt="%Y-%m-%d"][value maintenance_due_date]
[/convert-date] Gives me ok results. For example id I put
maintenance_due_date to be 01012002
using above statment will give me:2002-01-01
But why if I do following following:
[convert-date days="30" fmt="%Y-%m-%d"][value maintenance_due_date]
[/convert-date]
gives me again: 2002-01-01
while if I am doing:
[convert-date days="30" fmt="%Y-%m-%d"] [/convert-date] gives me
proper result, ie: 2002-03-17
I am really confused here and I am not quite sure what I am doing
wrong??
Please help !!!!!!!!!