Aaargh, I meant to post to the group -- Sorry, PM!<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Tegan Dowling</b> &lt;<a href="mailto:tmdowling@gmail.com">tmdowling@gmail.com
</a>&gt;<br>Date: Oct 25, 2007 8:40 AM<br>Subject: Re: [pmwiki-users] date math<br>To: &quot;Patrick R. Michaud&quot; &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br><br></span><span class="q">On 10/24/07, 
<b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pmichaud@pobox.com</a>&gt; wrote:</span><div><span class="q">
<span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Oct 24, 2007 at 06:44:21PM -0700, TSgt Marshall Kelly wrote:<br>&gt; Hello all,<br>&gt;<br>&gt; Hope you don&#39;t mind another question.<br>&gt;<br>&gt; I&#39;ve gotten &quot;(:if date yyyymmdd..:) execThisCode (:ifend:)&quot; to work, and I
<br>&gt; can use the &quot;math&quot; function.<br>&gt;<br>&gt; But how can I use the current value of date in a math equation. I&#39;d like<br>&gt; to determine if it&#39;s been X days since some event.<br><br>Doing math on dates and times can be a bit tricky.
<br><br>You might be able to do something like<br><br>&nbsp;&nbsp;&nbsp;&nbsp;(:if date ..-3days :)<br><br>to see if something occurred more than 3 days ago.</blockquote></span><div><br>Could we maybe get some examples on the wiki of how to do this kind of thing?&nbsp; I&#39;m sure I could use it, but without any examples it&#39;s just
hard to get a handle on.&nbsp; I did add some stuff to the
<a href="http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions-Sandbox" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions-Sandbox</a> (I mention since MarkupExpressions are part of this picture).
<br>&nbsp;</div><br></div>