<?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: Date field and timestamp format</title>
		<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format</link>
		<description>Gravity Support Forums Topic: Date field and timestamp format</description>
		<language>en-US</language>
		<pubDate>Thu, 16 Apr 2026 02:38:54 +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/date-field-and-timestamp-format" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-91469</link>
			<pubDate>Thu, 15 Nov 2012 10:24:38 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">91469@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem, glad you got it sorted. I love shoving data into hidden fields. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-91435</link>
			<pubDate>Thu, 15 Nov 2012 08:29:53 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">91435@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yeehaa, it was easy as f*** using hidden fields! Thanks for your help David!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90702</link>
			<pubDate>Tue, 13 Nov 2012 10:54:26 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">90702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Damned, you're fast! I was editing my post when you replied. &#60;/p&#62;
&#60;p&#62;Thanks for your help. I will let you know as soon as I will be victorious! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90699</link>
			<pubDate>Tue, 13 Nov 2012 10:50:10 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">90699@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You'll want to put the value into another field. You can't send the timestamp through the date field. You'll want to have a hidden text field to carry the timestamp into the database. You are close though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90693</link>
			<pubDate>Tue, 13 Nov 2012 10:47:06 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">90693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Weird or not. GF must bypass the value if it is not a date format like 2012/11/13, right?&#60;/p&#62;
&#60;p&#62;I will try to achieve my goals using a hidden field. And I will let you know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90684</link>
			<pubDate>Tue, 13 Nov 2012 10:32:42 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">90684@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok,&#60;/p&#62;
&#60;p&#62;I tried something but it doesn't work.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_1&#38;quot;, &#38;quot;convert_to_timestamp&#38;quot;);
function convert_to_timestamp($form){
	$_POST[&#38;#39;input_2&#38;#39;] = strtotime( $_POST[&#38;#39;input_2&#38;#39;] );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The value is not returned and nothing is written to the database. But when I try with the following code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_1&#38;quot;, &#38;quot;convert_to_timestamp&#38;quot;);
function convert_to_timestamp($form){
	$_POST[&#38;#39;input_2&#38;#39;] = &#38;#39;2012/11/15&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The value '2012/11/15' is written to the database. Weird.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90616</link>
			<pubDate>Tue, 13 Nov 2012 06:21:57 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">90616@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Using a hidden text field is a great idea (why didn't I think of that?) !&#60;/p&#62;
&#60;p&#62;But I will need help for the hook in order to grab the data ! &#60;/p&#62;
&#60;p&#62;I assume that I have to use hooks like gform_pre_submission or gform_pre_submission_filter ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90227</link>
			<pubDate>Mon, 12 Nov 2012 12:42:03 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">90227@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, but you could have a hidden text field, and using some PHP, you could fill in that field after submit by converting the date into a timestamp. Let me know if you want to work towards figuring this out. I can point you at a hook that might help you (grab the data).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cedric Neveu on "Date field and timestamp format"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-field-and-timestamp-format#post-90218</link>
			<pubDate>Mon, 12 Nov 2012 12:28:13 +0000</pubDate>
			<dc:creator>Cedric Neveu</dc:creator>
			<guid isPermaLink="false">90218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
Is there a way to convert the date field value to the timestamp format when submitting the form?&#60;/p&#62;
&#60;p&#62;Thanks for your help!&#60;/p&#62;
&#60;p&#62;Cedric
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
