<?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: Calculate a Date</title>
		<link>https://legacy.forums.gravityhelp.com/topic/calculate-a-date</link>
		<description>Gravity Support Forums Topic: Calculate a Date</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:08:06 +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/calculate-a-date" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Calculate a Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-a-date#post-58685</link>
			<pubDate>Fri, 11 May 2012 12:00:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">58685@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You will want to have an empty hidden field, you won't do anything with this field until the form is submitted. Then using &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#60;/a&#62; you can calculate the difference in dates based on what they selected and populate your hidden field so the value is sent to the database.&#60;/p&#62;
&#60;p&#62;To figure out the difference, you'll have to come up with some PHP code using the date function.&#60;br /&#62;
&#60;a href=&#34;http://php.net/manual/en/function.date.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.date.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>clicknathan on "Calculate a Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-a-date#post-58674</link>
			<pubDate>Fri, 11 May 2012 10:57:19 +0000</pubDate>
			<dc:creator>clicknathan</dc:creator>
			<guid isPermaLink="false">58674@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Would anyone know how I might calculate a month based on the date a user input? &#60;/p&#62;
&#60;p&#62;This isn't specific to the new &#34;calculations&#34; functionality or anything, but probably something that involves a little extra work on my part.&#60;/p&#62;
&#60;p&#62;For example, I want to allow the user to choose between three options in a dropdown question that asks, &#34;How soon do you want this?&#34;:&#60;/p&#62;
&#60;p&#62;1. 1-13 days&#60;br /&#62;
2. 14 - 21 days&#60;br /&#62;
3. 22 days or more&#60;/p&#62;
&#60;p&#62;And then have a date input (that isn't shown to the user, just for internal purposes) display the applicable month. So depending on what they chose:&#60;/p&#62;
&#60;p&#62;1. We'd leave the month as the current month.&#60;br /&#62;
2. We'd put it as the following month.&#60;br /&#62;
3. We'd put it as 2 months out.&#60;/p&#62;
&#60;p&#62;Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
