Given a date formatted as yyyyMMdd, it's easy to use Convert Time to
turn this in to Unix time (!CTIME) format. Great! Now for the tricky
part. I need the Unix time for the date that is yyyyMMdd + 400 days.

So if you have 20081214 as the date, what's the !CTIME value for
20081214 + 400 days? And can you get there without using XPath?

I'm doing it now with:

<do-set-local-variable name="EndDate" scope="policy">
<arg-string>
<token-convert-time dest-format="!CTIME" dest-tz="UTC"
src-format="yyyyMMdd">
<token-op-attr name="niuGroupStopDate"/>
</token-convert-time>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="EndDatePlus400" scope="policy">
<arg-string>
<token-xpath expression="$EndDate$+34560000"/>
</arg-string>
</do-set-local-variable>

But it really seems like there ought to be an easier or more obvious way
to do this that I'm missing.



---------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Novell Support Forums Volunteer SysOp http://forums.novell.com

Please post questions in the newsgroups. No support provided via email.