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

		<item>
			<title>Dana Cobb on "Date format change"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-format-change#post-50275</link>
			<pubDate>Thu, 23 Feb 2012 02:25:44 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">50275@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, monkeyproof,&#60;/p&#62;
&#60;p&#62;Take a look at the code I added to this topic - &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/creating-publish-date-from-date-field&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/creating-publish-date-from-date-field&#60;/a&#62; . In that code, I took fields from the form for the date and time and combined them to save to the database. The line below is the final code used to format the string correctly to save to the db.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$post_date = date(&#38;quot;Y-m-d H:i:s&#38;quot;,strtotime($date_value . &#38;quot; &#38;quot; . $time_value));&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>monkeyproof on "Date format change"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-format-change#post-49665</link>
			<pubDate>Fri, 17 Feb 2012 05:30:54 +0000</pubDate>
			<dc:creator>monkeyproof</dc:creator>
			<guid isPermaLink="false">49665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How can I use &#34;strtotime&#34; to change a text date input field to a datetime value to store in db? Is there a function to insert in functions.php?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
