<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Displaying date of 1 month ago in the list?</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 20:08:24 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>Works perfectly! Thanks a lot, this can be usefull in other places too :)</p>
]]></description>
			<pubDate>пн, 09 дек 2013 20:17:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7617&d=0#post38756]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Try:</p>

<pre class="brush:xml;">
{PHP|strtotime("now -1 month")|cot_date('d-m-Y', $this)}</pre>

<p> </p>
]]></description>
			<pubDate>пн, 09 дек 2013 14:44:30 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7617&d=0#post38749]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>I want to display a "since" date in my lists. It should always display the date of the current day minus 31 days.<br />
I have been trying the whole night but sadly my lack of knowledge prevents me from getting anywhere.</p>

<p>I am trying things like this: </p>

<pre class="brush:xml;">
&lt;h3&gt;Most read news since {PAGE_ROW_DATE_STAMP|cot_date('mktime () - 30 * 3600 * 24', $this)}&lt;/h3&gt;
&lt;h3&gt;Most read news since {PAGE_ROW_DATE_STAMP|cot_date("d-m-Y", UNIX_TIMESTAMP() -2629743, $this)}&lt;/h3&gt;</pre>

<p> </p>

<p>If I just do </p>

<pre class="brush:xml;">
&lt;h3&gt;Most read news since {PAGE_ROW_DATE_STAMP|cot_date("d-m-Y", $this)}&lt;/h3&gt;</pre>

<p> </p>

<p>I get the start date of UNIX time, so I am on the right path. All I have to figure out now is how to correctly add the UNIX_TIMESTAMP () to add to that value and than extract 30 or 31 days from that.<br />
In all those hours I only got to see that start date and otherwise it becomes a line of giberish text.</p>

<p>I have checked the php code manual, I also checked the Function Summary:<a href="http://www.cotonti.com/reference/cotonti/package-functions.html" style="line-height:1.6em;">http://www.cotonti.com/reference/cotonti/package-functions.htm</a> but I just can not figure it out. maybe its not possible to display that date sine we do not have a good reference point? Right now PAGE_ROW_DATE_STAMP  is used but I should actually reference the default time on the server, I think?<br />
I also tried with "<span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">{PAGE_ROW_RAW.user_sidtime}" but that too did not give me any usable results.</span></p>

<p> </p>

<p><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;line-height:normal;">I hope anyone here has a good idea and can help me.</span></p>
]]></description>
			<pubDate>пн, 09 дек 2013 07:21:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7617&d=0#post38747]]></link>
		</item>
	</channel>
</rss>