<?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: excel does not identify field in correct date format after import</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: excel does not identify field in correct date format after import</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 05:48:00 +0000</pubDate>

<item>
<title>beltex63 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-11440</link>
<pubDate>Thu, 17 Feb 2011 03:19:08 +0000</pubDate>
<dc:creator>beltex63</dc:creator>
<guid isPermaLink="false">11440@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That is so &#34;Barney Rubble&#34;. There should be a fix for this.
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4948</link>
<pubDate>Sat, 07 Mar 2009 16:20:12 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4948@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;for others that may be interested, i managed to complete this task through a single click by recording an excel macro. &#60;/p&#62;
&#60;p&#62;The macro refreshes the data as well as alligns the date column through Tools &#38;gt;&#38;gt; Text To Column &#38;gt;&#38;gt; finish .. all in one click.
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4601</link>
<pubDate>Tue, 10 Feb 2009 14:31:36 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4601@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This doesn't seem to be working. I have tried all combinations. Is this problem only at my end .. ? Is excel recognizing the date in true date format at your end?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4535</link>
<pubDate>Thu, 05 Feb 2009 13:39:01 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4535@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I think you can set the format to mm/dd/yyyy, you see in step 1 and 2 there are these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$dateFormat-&#38;gt;setNumFormat(&#38;#39;yyyy/mm/dd&#38;#39;);

$form_data[$i][$j] = date(&#38;quot;Y/m/d&#38;quot;,strtotime($row[$column_name]));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you can change those format to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$dateFormat-&#38;gt;setNumFormat(&#38;#39;mm/dd/yyyy&#38;#39;);

$form_data[$i][$j] = date(&#38;quot;m/d/Y&#38;quot;,strtotime($row[$column_name]));&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4528</link>
<pubDate>Wed, 04 Feb 2009 12:44:03 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4528@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;yes. i checked the cell properties and the the custom date form is set to &#34;yyyy/mm/dd&#34;.&#60;/p&#62;
&#60;p&#62;it still gets left aligned. my default system date is set to UK format which is mm/dd/yyyy  . Could the default system date setting cause a problem?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4510</link>
<pubDate>Mon, 02 Feb 2009 16:38:38 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4510@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Have you try to check in cell properties ? if you look at the properties it show custom format date with &#34;yyyy/mm/dd&#34; .
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4508</link>
<pubDate>Mon, 02 Feb 2009 15:01:53 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4508@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I made all the changes to the export_entries.php . Then i downloaded the latest excel file and imported it again.&#60;/p&#62;
&#60;p&#62;Nothing seems to have changed. The cells are still being understood as text, not date.&#60;/p&#62;
&#60;p&#62;Am i supposed to make any modifications to my excel file?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4498</link>
<pubDate>Sun, 01 Feb 2009 08:43:59 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4498@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Maybe you can try to add date format in excel cell, to do so edit you should edit your &#34;export_entries.php&#34; and do this steps :&#60;/p&#62;
&#60;p&#62;1. Goto line 161 you will find this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$format_bold-&#38;gt;setBorder(1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add exactly bellow that code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$dateFormat =&#38;#38; $workbook-&#38;gt;addFormat();
$dateFormat-&#38;gt;setNumFormat(&#38;#39;yyyy/mm/dd&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Goto around line 289 ~ 292, replace these code from :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($row[$column_name]) &#38;#38;&#38;#38; ($row[$column_name] != &#38;#39;0000-00-00&#38;#39;)){
	$form_data[$i][$j] = date(&#38;quot;Y/m/d&#38;quot;,strtotime($row[$column_name]));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($row[$column_name]) &#38;#38;&#38;#38; ($row[$column_name] != &#38;#39;0000-00-00&#38;#39;)){
	$form_data[$i][$j] = date(&#38;quot;Y/m/d&#38;quot;,strtotime($row[$column_name]));
}
$cell_date = $j;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;3. Goto line 360, replace this code from :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$worksheet-&#38;gt;write($row_num, $col_num, $data);&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;if ($cell_date == $col_num) {

	$worksheet-&#38;gt;write($row_num, $col_num, $data ,$dateFormat);
}
else {
	$worksheet-&#38;gt;write($row_num, $col_num, $data);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;if you look at the cell format properties (right click the cell), it will show custom date format with &#34;yyyy/mm/dd&#34;. Maybe this url will help you :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-format.setnumformat.php&#34; rel=&#34;nofollow&#34;&#62;http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-format.setnumformat.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bugs.pear.php.net/bugs/bug.php?id=3832&#34; rel=&#34;nofollow&#34;&#62;http://bugs.pear.php.net/bugs/bug.php?id=3832&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4489</link>
<pubDate>Fri, 30 Jan 2009 20:14:21 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4489@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;that seems to have worked. however, every time i refresh my excel data with the new entries in machform, i have to follow the same steps again.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4461</link>
<pubDate>Thu, 29 Jan 2009 10:56:27 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4461@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You need to do some column data formatting within your Excel for this.&#60;br /&#62;
I found an answer by Microsoft Excel MVP:&#60;br /&#62;
&#60;a href=&#34;http://www.tech-archive.net/Archive/Excel/microsoft.public.excel.misc/2008-11/msg06901.html&#34; rel=&#34;nofollow&#34;&#62;http://www.tech-archive.net/Archive/Excel/microsoft.public.excel.misc/2008-11/msg06901.html&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;When a cell is formatted as one type and you change that format type by
going to the menu Format&#38;gt;Cells, the new format isn&#38;#39;t applied until you edit
the cell. That&#38;#39;s what you&#38;#39;re doing when you double click the cell.

Try this...

Select the range of cells that hold the text dates.
Goto the menu Data&#38;gt;Text to Columns
Click Finish

This will usually reset the format to General and then Excel will recognize
the dates as true Excel dates then automatcally set the format to date.&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So, play around with the &#34;Data-&#38;gt;Text to Columns&#34; menu. Apply it to your date column and make sure to choose the &#34;column data format&#34; as date.
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4451</link>
<pubDate>Wed, 28 Jan 2009 15:46:31 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4451@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;hi, any ideas on this . i still cant open the downloaded excel file and get excel to read the date column in a date format. It still identifies it as a text field.&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
</item>
<item>
<title>raj000 on "excel does not identify field in correct date format after import"</title>
<link>https://www.machform.com/forums/topic/excel-does-not-identify-field-in-correct-date-format-after-import#post-4162</link>
<pubDate>Wed, 07 Jan 2009 16:50:40 +0000</pubDate>
<dc:creator>raj000</dc:creator>
<guid isPermaLink="false">4162@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a form with a date field and some other fields.&#60;/p&#62;
&#60;p&#62;When I download entries of this form as an excel file and open it in excel, it identifies the date field as a text field. &#60;/p&#62;
&#60;p&#62;However, if i select a date record by double clicking the cell and simply hit enter, it correctly right alligns the value. In excel this means the date format has been correctly identified. It would be a nightmare to do this for all records each time.&#60;/p&#62;
&#60;p&#62;I tried to change the date format of my excel as well as the region settings in windows...but it didnt work.&#60;/p&#62;
&#60;p&#62;Any ideas..thanks&#60;/p&#62;
&#60;p&#62;:)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
