<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019854" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019854</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/time#comment-1120446</link>
    <description> &lt;p&gt;I&#039;m assuming you&#039;re using mySQL.  mySQL has special fields for time data: DATE, DATETIME, TIME, TIMESTAMP, and YEAR.  For some reason (probably habit formed from programming in PERL), people like to use the time() function and store it in an INT(11).&lt;/p&gt;
&lt;p&gt;If this is the case, you can pull it out like so:&lt;br /&gt;
SELECT FROM_UNIXTIME(time_field,&#039;%m-%d-%Y&#039;) FROM table_name&lt;/p&gt;
&lt;p&gt;If the format is MMDDYYYY, you can pull it out like so:&lt;br /&gt;
SELECT CONCAT(SUBSTRING(time_field,1,2),&#039;-&#039;,SUBSTRING(time_field,3,2),&#039;-&#039;,SUBSTRING(time_field,5,4)) FROM table_name&lt;/p&gt;
&lt;p&gt;If the format is YYYYMMDD, or YYYYMMDDHHMMSS, you can pull it out like so:&lt;br /&gt;
SELECT DATE_FORMAT(time_field,&#039;%m-%d-%Y&#039;) FROM table_name&lt;/p&gt;
&lt;p&gt;In the future, I recommend using the appropriate datatype.&lt;/p&gt;
 </description>
     <pubDate>Tue, 03 Dec 2002 05:52:19 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1120446 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/time#comment-1120429</link>
    <description> &lt;p&gt;I would use date, not time personally.  And just put it in text, not int.&lt;/p&gt;
&lt;p&gt;I&#039;m not quite sure what you&#039;re asking though.&lt;/p&gt;
 </description>
     <pubDate>Tue, 03 Dec 2002 02:37:41 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1120429 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/time#comment-1120428</link>
    <description> &lt;p&gt;It would require you to make a function. You can&#039;t just extract something that is inserted as 11112002 and read it as 11-11-2002.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$time &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;11112002&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$date &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$month&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;-\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$day&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;-\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$date&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;It would change 11112002 to 11-11-2002&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.php.net/substr&quot; class=&quot;bb-url&quot;&gt;More on the SubStr function&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 03 Dec 2002 02:36:53 +0000</pubDate>
 <dc:creator>necrotic</dc:creator>
 <guid isPermaLink="false">comment 1120428 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
