<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SamplePhpCodes.com &#187; dhtml time picker</title>
	<atom:link href="http://www.samplephpcodes.com/tag/dhtml-time-picker/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.samplephpcodes.com</link>
	<description>Get PHP Code Help, Sample PHP Scripts,PHP Script Demos</description>
	<lastBuildDate>Mon, 05 Apr 2010 15:39:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Date time picker in PHP</title>
		<link>http://www.samplephpcodes.com/sample-php-codes/date-time-picker-in-php/</link>
		<comments>http://www.samplephpcodes.com/sample-php-codes/date-time-picker-in-php/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 17:51:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Form]]></category>
		<category><![CDATA[Sample PHP Codes]]></category>
		<category><![CDATA[converting date format php]]></category>
		<category><![CDATA[date string format php]]></category>
		<category><![CDATA[date time picker]]></category>
		<category><![CDATA[dhtml time picker]]></category>
		<category><![CDATA[format unix timestamp php]]></category>
		<category><![CDATA[php calendar date picker]]></category>
		<category><![CDATA[php date conversion]]></category>
		<category><![CDATA[php date function]]></category>
		<category><![CDATA[php number format]]></category>
		<category><![CDATA[php time conversion]]></category>
		<category><![CDATA[phpmysql date format]]></category>

		<guid isPermaLink="false">http://samplephpcodes.com/?p=83</guid>
		<description><![CDATA[This is a custom php date time drop down picker. It will show the current date and time in the drop down box and u can seletct date and time from it. &#60;?php $day=date(&#34;d&#34;); $month=date(&#34;m&#34;); $year=date(&#34;Y&#34;); $hour=date(&#34;h&#34;); $min=date(&#34;i&#34;); $am_pm=date(&#34;a&#34;); $pm_am=array(1 =&#62; &#34;am&#34;,2 =&#62; &#34;pm&#34;); ?&#62; &#60;?php echo '&#60;select name=&#34;year&#34;&#62;'; for($i=$year;$i&#60;=($year+10);$i++){ if($i==(int)$year) $tst=&#34; SELECTED&#34;; else $tst=&#34;&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a custom php date time drop down picker. It will show the current date and time in the drop down box and u can seletct date and time from it.</p>
<pre class="brush: php;">
&lt;?php
$day=date(&quot;d&quot;);
$month=date(&quot;m&quot;);
$year=date(&quot;Y&quot;);
$hour=date(&quot;h&quot;);
$min=date(&quot;i&quot;);
$am_pm=date(&quot;a&quot;);
$pm_am=array(1 =&gt; &quot;am&quot;,2 =&gt; &quot;pm&quot;);
?&gt;
		&lt;?php
		echo '&lt;select name=&quot;year&quot;&gt;';
		for($i=$year;$i&lt;=($year+10);$i++){ if($i==(int)$year) $tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$i.'&quot;'.$tst .'&gt;'.$i;
 		}
		echo '&lt;/select&gt;';
		?&gt;

		&lt;?php
		echo '&lt;select name=&quot;moth&quot;&gt;';
		for($i=0;$i&lt;=12;$i++){ if($i==(int)$month)$tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$i.'&quot;'.$tst .'&gt;'.$i;
 		}
		echo '&lt;/select&gt;';
		?&gt;

		&lt;?php
		echo '&lt;select name=&quot;day&quot;&gt;';
		for($i=0;$i&lt;=31;$i++){ if($i==(int)$day)$tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$i.'&quot;'.$tst .'&gt;'.$i;
 		}
		echo '&lt;/select&gt;';
		?&gt;

		&lt;?php
		echo '&lt;select name=&quot;hour&quot;&gt;';
		for($i=1;$i&lt;=12;$i++){ if($i==(int)$hour) $tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$i.'&quot;'.$tst .'&gt;'.$i;
 		}
		echo '&lt;/select&gt;';
		?&gt;

		&lt;?php
		echo '&lt;select name=&quot;min&quot;&gt;';
		for($i=0;$i&lt;=59;$i++){ if($i==(int)$min)$tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$i.'&quot;'.$tst .'&gt;'.$i;
 		}
		echo '&lt;/select&gt;';
		?&gt;

		&lt;?php
		echo '&lt;select name=&quot;am_pm&quot;&gt;';
		for($i=1;$i&lt;=2;$i++){ if($pm_am[$i]==$am_pm)$tst=&quot; SELECTED&quot;; else $tst=&quot;&quot;;
			echo '&lt;option value=&quot;'.$pm_am[$i].'&quot;'.$tst .'&gt;'.$pm_am[$i];
 		}
		echo '&lt;/select&gt;';
		?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.samplephpcodes.com/sample-php-codes/date-time-picker-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
