<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://www.xlayer.co.za/forum/extern.php?action=feed&amp;tid=82&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[SXI Forum / Rules: DateConverter]]></title>
		<link>https://www.xlayer.co.za/forum/viewtopic.php?id=82</link>
		<description><![CDATA[The most recent posts in Rules: DateConverter.]]></description>
		<lastBuildDate>Tue, 26 Mar 2019 12:54:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Rules: DateConverter]]></title>
			<link>https://www.xlayer.co.za/forum/viewtopic.php?pid=137#p137</link>
			<description><![CDATA[<p>The <strong>&quot;DateConverter&quot;</strong> can also be used to input the current date in the format that you define in the <strong>&quot;&lt;OutputDateFormat&gt;&quot;</strong> attribute.</p><p>To do this however, the attribute <strong>&quot;&lt;InputDateFormat&gt;&quot;</strong> <strong><span style="color: #FF0000">MUST</span></strong> be empty.</p><p>E.g</p><div class="codebox"><pre><code>&lt;sxi:DateConverter InputDateFormat=&quot;&quot; OutputDateFormat=&quot;dd-MM-yyyy&quot;/&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (MarekR)]]></author>
			<pubDate>Tue, 26 Mar 2019 12:54:46 +0000</pubDate>
			<guid>https://www.xlayer.co.za/forum/viewtopic.php?pid=137#p137</guid>
		</item>
		<item>
			<title><![CDATA[Rules: DateConverter]]></title>
			<link>https://www.xlayer.co.za/forum/viewtopic.php?pid=134#p134</link>
			<description><![CDATA[<p>This rule changes the format of the given date to one you specify.</p><p><strong>Example:</strong></p><div class="codebox"><pre><code>Date= “15/03/2019”</code></pre></div><p>The above <strong>&quot;Date&quot;</strong> is in a dd/MM/yyyy format, we want to change the format to yyyy-MM-dd.</p><div class="codebox"><pre><code>&lt;sxi:Field name=&quot;//*[local-name()=’Date’]&quot;&gt;
 &lt;sxi:Rules&gt;
    &lt;sxi:DateConverter InputDateFormat=&quot;dd/MM/yyyy&quot; OutputDateFormat=&quot;yyyy-MM-dd&quot;/&gt;
 &lt;/sxi:Rules&gt;
 &lt;sxi:OutputField&gt;Date&lt;/sxi:OutputField&gt;
&lt;/sxi:Field&gt;</code></pre></div><p>After using the above config <strong>&quot;Date&quot;</strong> will look as follows:</p><div class="codebox"><pre><code>Date = &quot;2019-03-15&quot;</code></pre></div><p>You can also use <strong>&quot;DateConverter&quot;</strong> for time.</p><p>To see examples of pattern syntax follow the link bellow (found at the bottom of the article):<br /><a href="https://www.journaldev.com/17899/java-simpledateformat-java-date-format" rel="nofollow">https://www.journaldev.com/17899/java-s … ate-format</a></p><p><strong>Attributes:</strong> </p><ul><li><p><strong>InputDateFormat:</strong><br />The format that is being used as the input.</p></li><li><p><strong>OutputDateFormat:</strong><br />The format that is expected.</p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (MarekR)]]></author>
			<pubDate>Fri, 15 Mar 2019 11:19:36 +0000</pubDate>
			<guid>https://www.xlayer.co.za/forum/viewtopic.php?pid=134#p134</guid>
		</item>
	</channel>
</rss>
