[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] MV 4.04a - convert-date usertag usage
Quoting Jim Toro (jimtoro@hoflink.com):
>
> I am trying to convert a user supplied date into a past date.
> For instance I can get a user to pick a valid date in any format
> I like (01-Jan-2001 or 20010101 or whatever) but I am trying to
> take that date and use a simple function to subtract X days to get
> a new valid date.
>
> I have used [convert-date] for several things but when I try to
> use it for this as follows:
>
> [convert-date 10]200210100000[/convert-date]
>
> It doesnt add or (using -10) subtract days, rather it just takes the
> date and reformats it for output.
That tag only subtracts/adds days from the current date/time,
not from an arbitrary one.
You would need to build a UserTag around Date::Calc or one
of the multitude of Date/Time modules out there.
--
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>
Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun
_______________________________________________
Minivend-users mailing list
Minivend-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/minivend-users