<?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: How can I remove past years from the date picker?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker</link>
		<description>Gravity Support Forums Topic: How can I remove past years from the date picker?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 09:07:51 +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/how-can-i-remove-past-years-from-the-date-picker" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-69303</link>
			<pubDate>Fri, 03 Aug 2012 11:20:06 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">69303@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you try changing it to .datepicker instead of .hasDatepicker just out of curiosity?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iamthez on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-69299</link>
			<pubDate>Fri, 03 Aug 2012 10:56:56 +0000</pubDate>
			<dc:creator>iamthez</dc:creator>
			<guid isPermaLink="false">69299@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've tried all of these syntax variations, but no luck so far. Thanks for trying, though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68709</link>
			<pubDate>Tue, 31 Jul 2012 03:05:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You have a syntax error in the JavaScript you pasted into the head:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Timestamp: 7/31/2012 1:56:26 AM
Error: SyntaxError: syntax error
Source File: &#60;a href=&#34;http://directconnexiontravel.com/?page_id=25&#34; rel=&#34;nofollow&#34;&#62;http://directconnexiontravel.com/?page_id=25&#60;/a&#62;
Line: 39, Column: 47
Source Code:
  $(&#38;quot;.hasDatepicker&#38;quot;).datepicker({ minDate: 0+ })&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will also soon have a &#34;$ is not defined&#34; error because $ is reserved for Prototype in WordPress.  Please try this version:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var $j = jQuery.noConflict();
$j(document).ready(function () {
	$j(&#38;quot;.hasDatepicker&#38;quot;).datepicker({ minDate: &#38;#39;0&#38;#39; })
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;There seems to be lots of conflicting information online of how to format the minDate:&#60;br /&#62;
&#60;a href=&#34;http://stackoverflow.com/questions/1786411/jquery-datepicker-to-prevent-past-date&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/1786411/jquery-datepicker-to-prevent-past-date&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Other variations of this line you can try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
	$j(&#38;quot;.hasDatepicker&#38;quot;).datepicker({ minDate: +0 })&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;[js]
	$j(&#38;quot;.hasDatepicker&#38;quot;).datepicker({ minDate: 0, })&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>iamthez on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68679</link>
			<pubDate>Mon, 30 Jul 2012 19:39:47 +0000</pubDate>
			<dc:creator>iamthez</dc:creator>
			<guid isPermaLink="false">68679@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Doesn't seem to make any difference for me...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68663</link>
			<pubDate>Mon, 30 Jul 2012 17:52:10 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">68663@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you try the following:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$(document).ready(function () {
		$(&#38;quot;.hasDatepicker&#38;quot;).datepicker({ minDate: 0+ })
	});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>iamthez on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68656</link>
			<pubDate>Mon, 30 Jul 2012 17:11:55 +0000</pubDate>
			<dc:creator>iamthez</dc:creator>
			<guid isPermaLink="false">68656@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've tried a few things, but none of them seem to work. Can anyone tell me what I'm doing wrong? Example: &#60;a href=&#34;http://directconnexiontravel.com/?page_id=25&#34; rel=&#34;nofollow&#34;&#62;http://directconnexiontravel.com/?page_id=25&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68596</link>
			<pubDate>Mon, 30 Jul 2012 13:08:29 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">68596@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The datepicker is straight from the jQuery UI library so you can pass parameters in your theme header or script files to modify it.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://docs.jquery.com/UI/API/1.8/Datepicker&#34; rel=&#34;nofollow&#34;&#62;http://docs.jquery.com/UI/API/1.8/Datepicker&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This is probably what you're looking for&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://stackoverflow.com/questions/1786411/jquery-datepicker-to-prevent-past-date&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/1786411/jquery-datepicker-to-prevent-past-date&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;#datepicker&#38;quot;).datepicker({ minDate: 0 });&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68594</link>
			<pubDate>Mon, 30 Jul 2012 13:07:13 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">68594@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is the datepicker that we use:&#60;br /&#62;
&#60;a href=&#34;http://jqueryui.com/demos/datepicker/&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Over on the right hand side, there are details on how to restrict the dates under Examples. You would want to put your JavaScript code for this in the header.php of your theme.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iamthez on "How can I remove past years from the date picker?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-remove-past-years-from-the-date-picker#post-68588</link>
			<pubDate>Mon, 30 Jul 2012 13:01:22 +0000</pubDate>
			<dc:creator>iamthez</dc:creator>
			<guid isPermaLink="false">68588@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My client sells tickets/cruises, that sort of thing. Obviously, she can't sell them for years that have passed... Is there a way to remove past years from the date picker?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
