<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Date field coming back 12/31/1969</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Date field coming back 12/31/1969</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:26:39 +0000</pubDate>

<item>
<title>yuniar on "[closed] Date field coming back 12/31/1969"</title>
<link>https://www.machform.com/forums/topic/date-field-coming-back-12311969#post-314</link>
<pubDate>Sun, 18 Nov 2007 00:33:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">314@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok, I found out that there is a bug for some system with PHP version &#38;lt; 5.&#60;br /&#62;
The date was limited to 12/31/1969 and can't be any older.&#60;/p&#62;
&#60;p&#62;To fix this, we need to modify 2 files (includes/helper-functions.php and manage_entries.php)&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;includes/helper-functions.php&#60;/strong&#62;&#60;br /&#62;
-----------------------------&#60;/p&#62;
&#60;p&#62;on line 326, search for this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$email_data[$i][&#38;#39;value&#38;#39;]  = &#38;#39; - &#38;#39;.date(&#38;quot;m/d/Y&#38;quot;,strtotime($value));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
replace it with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$exploded_value = array();
$exploded_value = explode(&#38;quot;-&#38;quot;,$value);
$email_data[$i][&#38;#39;value&#38;#39;]  = &#38;#39; - &#38;#39;.&#38;quot;{$exploded_value[1]}/{$exploded_value[2]}/{$exploded_value[0]}&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;on line 332, search this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$email_data[$i][&#38;#39;value&#38;#39;]  = &#38;#39; - &#38;#39;.date(&#38;quot;d/m/Y&#38;quot;,strtotime($value));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
replace it with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$exploded_value = array();
$exploded_value = explode(&#38;quot;-&#38;quot;,$value);
$email_data[$i][&#38;#39;value&#38;#39;]  = &#38;#39; - &#38;#39;.&#38;quot;{$exploded_value[2]}/{$exploded_value[1]}/{$exploded_value[0]}&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;manage_entries.php&#60;/strong&#62;&#60;br /&#62;
------------------&#60;/p&#62;
&#60;p&#62;on line 251 and line 260, search for this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$form_data[$i][$j] = date(&#38;quot;Y/m/d&#38;quot;,strtotime($row[$column_name]));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
replace it with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$exploded_value = array();
$exploded_value = explode(&#38;quot;-&#38;quot;,$row[$column_name]);
$form_data[$i][$j]  = &#38;quot;{$exploded_value[0]}/{$exploded_value[1]}/{$exploded_value[2]}&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
I hope I'm being clear for you.&#60;br /&#62;
Let me know if you have any difficulty.
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "[closed] Date field coming back 12/31/1969"</title>
<link>https://www.machform.com/forums/topic/date-field-coming-back-12311969#post-313</link>
<pubDate>Sat, 17 Nov 2007 22:02:32 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">313@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://prayercardstore.com/machform/view.php?id=1&#34; rel=&#34;nofollow&#34;&#62;http://prayercardstore.com/machform/view.php?id=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The fields for&#60;br /&#62;
1. Date of Birth&#60;br /&#62;
2. Date of Death&#60;br /&#62;
3. Date of Service&#60;br /&#62;
4. Deliver ON or Before...&#60;/p&#62;
&#60;p&#62;I had to change them to &#34;single line text&#34; momentarily because it is live and being used by customers.&#60;br /&#62;
I'll change it back for now so you can take a look.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Date field coming back 12/31/1969"</title>
<link>https://www.machform.com/forums/topic/date-field-coming-back-12311969#post-310</link>
<pubDate>Sat, 17 Nov 2007 10:05:32 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">310@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Al,&#60;/p&#62;
&#60;p&#62;Can you tell me which form? and which field?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>Al on "[closed] Date field coming back 12/31/1969"</title>
<link>https://www.machform.com/forums/topic/date-field-coming-back-12311969#post-309</link>
<pubDate>Sat, 17 Nov 2007 03:46:16 +0000</pubDate>
<dc:creator>Al</dc:creator>
<guid isPermaLink="false">309@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;My orders keep coming back with the date field 12/31/1969. Any idea how to fix it?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
