<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Macro to Increment date]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Macro to Increment date of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Sun, 15 Apr 2007 20:23:54 +0300</lastBuildDateTag>		<item>
			<title>Macro to Increment date</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4502/message17307/">Macro to Increment date</a></b> <i>Create a macro for automatic emails that use the next sunday's date</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			====code====
<pre>
%_Today='%SetPattRegExp="^(.+?)&#92;,"%RegExpMatch(%DateEn)'%-
%IF:'%_Today'='Sunday':'%_Add(7)'%-
%IF:'%_Today'='Monday':'%_Add(6)'%-
%IF:'%_Today'='Tuesday':'%_Add(5)'%-
%IF:'%_Today'='Wednesday':'%_Add(4)'%-
%IF:'%_Today'='Thursday':'%_Add(3)'%-
%IF:'%_Today'='Friday':'%_Add(2)'%-
%IF:'%_Today'='Saturday':'%_Add(1)'%-
%SUBJECT='%XMP_TimeAdd("%Date(dd.mm.yyyy)",%_Add,"D","dd mmmm")'%-
</pre>
=============
<br /><br />(if today is sunday, you want to get a date of the next sunday?)<br /><br />Something about XMP_TimeAdd:<br />%XMP_TimeAdd([Time], [How many], [What], [Return format])<br /><br />[Time] must be given as &quot;dd.mm.yyyy hh:nn:ss&quot; or &quot;dd.mm.yyyy&quot;. <br />[How many] is a number (could be with &quot;-&quot; for subtraction, but then number must be surrounded with quotes, for example &quot;-3&quot;). <br />[What] could be: D – days; W – weeks; M – months; Y – years; H – hours; N – minutes; S – seconds.<br />[Return format] is a typical date format (more info in TB!'s manual, in the chapter 'Macro Date/Time format'). <br />
			<i>15 April 2007 20:23:54, <a href="http://www.ritlabs.com/en/forums/">K_S</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4502/message17307/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4502/message17307/</guid>
			<pubDate>Sun, 15 Apr 2007 20:23:54 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro to Increment date</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4502/message17262/">Macro to Increment date</a></b> <i>Create a macro for automatic emails that use the next sunday's date</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Yes please.<br /><br />Any help will be appreciated. &nbsp;I cant read a word of German. &nbsp;I have downloaded it so you can send me the instructions on how to install and make this thing work.<br /><br />Thanks <br />
			<i>12 April 2007 08:43:13, <a href="http://www.ritlabs.com/en/forums/">Prince Nyarko</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4502/message17262/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4502/message17262/</guid>
			<pubDate>Thu, 12 Apr 2007 08:43:13 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro to Increment date</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4502/message17242/">Macro to Increment date</a></b> <i>Create a macro for automatic emails that use the next sunday's date</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			I don't think you can do that with TB's default macros.<br /><br />The %TimeAdd macro from the XMP plugin can do this. The XMP (eXtended Macro Plugin) can be downloaded from: <noindex><a href="http://www.gaijin.at/tbpxmp.php" target="_blank" rel="nofollow">http://www.gaijin.at/tbpxmp.php</a></noindex><br /><br />The XMP plugin is in German, if that's a problem I'm willing to help you with this macro and installing the plugin. <br />
			<i>11 April 2007 09:44:32, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4502/message17242/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4502/message17242/</guid>
			<pubDate>Wed, 11 Apr 2007 09:44:32 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro to Increment date</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4502/message17236/">Macro to Increment date</a></b> <i>Create a macro for automatic emails that use the next sunday's date</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hi <br />How do I create a macro in my subject line that allows me &nbsp;; at the the time of sending to specify the next Sunday's date. &nbsp;The email is sent by the scheduler and it's to remind individuals about events on Sunday.<br /><br />How do I get the macro to automatically push the date on the subject line forward based on the date that the email is being sent by the scheduler?<br />I want to incorporate that in my %SUBJECT line. &nbsp;I cant get my head round the macros<br /><br />thanks in advance<br /><br />D <br />
			<i>11 April 2007 03:35:07, <a href="http://www.ritlabs.com/en/forums/">Prince Nyarko</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4502/message17236/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4502/message17236/</guid>
			<pubDate>Wed, 11 Apr 2007 03:35:07 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
