[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Unix time -> normal date
****** message to minivend-users from "Bill Randle" <billr@exgate.tek.com> ******
Rene,
Sorry for the long delay in replying to your question. No excuse 'cept
I've been busy....
On Jun 21, 9:47am, jojo@buchonline.net wrote:
} Subject: RE: [mv] Unix time -> normal date
} > I'm using the tag just like you mentioned, but I only get the non-raw
} > value...
} > Can you advice me how to use a value that i get from an input-box. I tried
} > to make it like this, but I don't get any result...
} >
} > [convert-date [value days]][/convert-date]
} ^^^ ^^^
} <>
}
} [convert-date][value days][/convert-date]
This won't work, as the expected value between [convert-date] and
[/convert-date] (if used) is the date format, not the number of days.
The magic answer is:
[convert-date days="[value days]"][/convert-date]
This is the only way to get [value days] interpolated properly, other than
putting it inside a [calc] or [perl] block, ala:
[calc]$Tag->convert_date([value days]);[/calc]
Note in the first case above the quotes around [value days] are *required*.
-Bill
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list