<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Test if a date added with the Advanced Fields to a post has passed?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/test-if-a-date-added-with-the-advanced-fields-to-a-post-has-passed</link>
		<description>Gravity Support Forums Topic: Test if a date added with the Advanced Fields to a post has passed?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:44:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/test-if-a-date-added-with-the-advanced-fields-to-a-post-has-passed" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Test if a date added with the Advanced Fields to a post has passed?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-if-a-date-added-with-the-advanced-fields-to-a-post-has-passed#post-104024</link>
			<pubDate>Tue, 18 Dec 2012 11:35:50 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">104024@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you were able to figure it out. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lunamedia on "Test if a date added with the Advanced Fields to a post has passed?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-if-a-date-added-with-the-advanced-fields-to-a-post-has-passed#post-104020</link>
			<pubDate>Tue, 18 Dec 2012 11:28:40 +0000</pubDate>
			<dc:creator>lunamedia</dc:creator>
			<guid isPermaLink="false">104020@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Think I have answered my own question using PHP's strtotime.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/5547785&#34; rel=&#34;nofollow&#34;&#62;Code on Pastie&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Could probably be tidied up but seems to do what I need for now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lunamedia on "Test if a date added with the Advanced Fields to a post has passed?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-if-a-date-added-with-the-advanced-fields-to-a-post-has-passed#post-103997</link>
			<pubDate>Tue, 18 Dec 2012 10:35:53 +0000</pubDate>
			<dc:creator>lunamedia</dc:creator>
			<guid isPermaLink="false">103997@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey. I'm using a front-end GF to allow users to create a 'Project' custom post type. I'm using the Date field (from Advanced Fields, with the jQuery datepicker) on a couple of fields to allow users to set a project start and finish date. &#60;/p&#62;
&#60;p&#62;I can output these to my template fine. What I'd like is a way to test if the End Date field is before or after the current date - so I can display a 'Finished' or 'Still Active' message. &#60;/p&#62;
&#60;p&#62;This is the code that outputs the date to the template:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $project_enddate = get_post_meta($post-&#38;gt;ID, &#38;#39;project_enddate&#38;#39;, true);
if($project_enddate) : ?&#38;gt;
&#38;lt;p&#38;gt;&#38;lt;strong&#38;gt;End Date:&#38;lt;/strong&#38;gt; &#38;lt;?php echo $project_enddate; ?&#38;gt;&#38;lt;/p&#38;gt;
&#38;lt;?php endif; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;BTW I am using dd/mm/yyyy format as I'm in the UK. If anyone has an idea on how to do this I'd be very grateful.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
