<?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: Change "date_created" format (Germany/Deutschland)</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Change "date_created" format (Germany/Deutschland)</description>
<language>en</language>
<pubDate>Sat, 07 Nov 2026 09:15:55 +0000</pubDate>

<item>
<title>yuniar on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-11815</link>
<pubDate>Tue, 12 Apr 2011 21:19:28 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11815@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Can you send us your file please? We'll check it.&#60;br /&#62;
Please send to: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>antoniovarrina on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-11805</link>
<pubDate>Tue, 12 Apr 2011 15:42:26 +0000</pubDate>
<dc:creator>antoniovarrina</dc:creator>
<guid isPermaLink="false">11805@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Now i fix that, but Parse error: parse error in ''C:\wamp\www\o\view_entry.php on line 51''&#60;/p&#62;
&#60;p&#62;....
&#60;/p&#62;</description>
</item>
<item>
<title>antoniovarrina on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-11804</link>
<pubDate>Tue, 12 Apr 2011 15:39:30 +0000</pubDate>
<dc:creator>antoniovarrina</dc:creator>
<guid isPermaLink="false">11804@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This dont work for me...&#60;/p&#62;
&#60;p&#62;I got error &#60;/p&#62;
&#60;p&#62;select date_format(date_created,'%d.%m%.%Y %H:%i:%s') date_created,date_updated,ip_address from 'ap_form_1' where id='13' Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''ap_form_1' where id='13'' at line 1
&#60;/p&#62;</description>
</item>
<item>
<title>nilsmierzynski on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-3812</link>
<pubDate>Wed, 26 Nov 2008 18:02:42 +0000</pubDate>
<dc:creator>nilsmierzynski</dc:creator>
<guid isPermaLink="false">3812@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi redityo!&#60;/p&#62;
&#60;p&#62;Works great!&#60;br /&#62;
Just replaced the ~ in your code...&#60;br /&#62;
~ap_form_{$form_id}~&#60;br /&#62;
to the &#34;backticks&#34; and it worked fine!&#60;/p&#62;
&#60;p&#62;Thank you!&#60;br /&#62;
Nils
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-3805</link>
<pubDate>Wed, 26 Nov 2008 09:23:31 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3805@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Nils,&#60;/p&#62;
&#60;p&#62;Sorry .. since this forums can not use &#34;backticks&#34; it show different result. However I've update my post, please replace ~ character to &#34;backticks&#34; character when you copy those code to your machform file.
&#60;/p&#62;</description>
</item>
<item>
<title>nilsmierzynski on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-3803</link>
<pubDate>Wed, 26 Nov 2008 03:35:58 +0000</pubDate>
<dc:creator>nilsmierzynski</dc:creator>
<guid isPermaLink="false">3803@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi redityo!&#60;/p&#62;
&#60;p&#62;Thank you. Doing this changes in the code of this two file cause this error:&#60;/p&#62;
&#60;p&#62;select date_format(date_created,'%d.%m%.%Y %H:%i:%s') date_created,date_updated,ip_address from ap_form_2 where id='525' Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ap_form_2 where id='525'' at line 1&#60;/p&#62;
&#60;p&#62;This is what I did:&#60;/p&#62;
&#60;p&#62;view_entry.php&#60;br /&#62;
&#60;code&#62;$query = &#38;quot;select date_created,date_updated,ip_address from&#60;/code&#62;ap_form_{$form_id}&#60;code&#62;where id=&#38;#39;$entry_id&#38;#39;&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$query = &#38;quot;select date_format(date_created,&#38;#39;%d.%m%.%Y %H:%i:%s&#38;#39;) date_created,date_updated,ip_address from &#38;lt;code&#38;gt;ap_form_{$form_id}&#38;lt;/code&#38;gt; where id=&#38;#39;$entry_id&#38;#39;&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and&#60;/p&#62;
&#60;p&#62;export_entries.php&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$form_data[$i][$j] = $row[$column_name];&#60;/code&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($column_name == &#38;#39;date_created&#38;#39;)
						$form_data[$i][$j] =date(&#38;quot;d.m.Y H:i:s&#38;quot;,strtotime($row[$column_name]));
					else
						$form_data[$i][$j] = $row[$column_name];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What did I wrong?&#60;br /&#62;
Rechanged everything with success.&#60;/p&#62;
&#60;p&#62;Thank you for your perfect support!&#60;br /&#62;
Nils
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-3795</link>
<pubDate>Tue, 25 Nov 2008 14:49:52 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3795@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm afraid you can not directly change date format in mySQL database, since mySQL using YYYY-MM-DD format for date type. But you can get your format in view entries and excel export, to do this you should edit &#34;view_entry.php&#34; and &#34;export_entries.php&#34; files.&#60;/p&#62;
&#60;p&#62;1. Edit view_entry.php, search around line 51, you'll see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;quot;select date_created,date_updated,ip_address from ~ap_form_{$form_id}~
where id=&#38;#39;$entry_id&#38;#39;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with this one &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;quot;select date_format(date_created,&#38;#39;%d.%m%.%Y %H:%i:%s&#38;#39;)
 date_created,date_updated,ip_address from ~ap_form_{$form_id}~ where id=&#38;#39;$entry_id&#38;#39;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Edit &#34;export_entries.php&#34;, search around line 324 you'll see this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_data[$i][$j] = $row[$column_name];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($column_name == &#38;#39;date_created&#38;#39;)
	$form_data[$i][$j] =date(&#38;quot;d.m.Y H:i:s&#38;quot;,strtotime($row[$column_name]));
else
	$form_data[$i][$j] = $row[$column_name];&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>nilsmierzynski on "Change "date_created" format (Germany/Deutschland)"</title>
<link>https://www.machform.com/forums/topic/change-date_created-format-germanydeutschland#post-3788</link>
<pubDate>Mon, 24 Nov 2008 22:56:51 +0000</pubDate>
<dc:creator>nilsmierzynski</dc:creator>
<guid isPermaLink="false">3788@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;I love to change the format of the date_created variable.&#60;br /&#62;
Is it just to change the this line in &#34;post-functions.php&#34;?&#60;/p&#62;
&#60;p&#62;line 927: $table_data['date_created'] = date(&#34;Y-m-d H:i:s&#34;);&#60;/p&#62;
&#60;p&#62;to German standard:&#60;/p&#62;
&#60;p&#62;line 927: $table_data['date_created'] = date(&#34;d.m.Y H:i:s&#34;);&#60;/p&#62;
&#60;p&#62;or are other file affected or will cause problems?&#60;br /&#62;
Thank you!&#60;br /&#62;
Nils
&#60;/p&#62;</description>
</item>

</channel>
</rss>
