date field in php is returning wrong value
<p>Am trying to get the date selected from a FORM to my sql database using php.</p>

<p>Code for JS:</p>

<pre><code>&lt;script type="text/javascript" src="mootools-core-1.4.5-full-compat.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="datepicker.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
        new DatePicker('.picker', {
         pickerClass: 'datepicker ',
             allowEmpty: true
                     });           
&lt;/script&gt;
</code></pre>

<p>Code for Date field in the FORM - HTML</p>

<pre><code> &lt;td&gt;&lt;input name='DateOfJourney' type='text' value='' class='date picker' &gt;&lt;/td&gt;
</code></pre>

<p>Code for PHP which i am echoing:
    <code>echo $_POST['DateOfJourney'];</code></p>

<p>Also the DateOfJourney field in the sql table is VARCHAR type.</p>

<p>There are codes for CSS, if needed i'll copy them. The date field in the form is a date picker format.</p>

<p>When selecting the date as <code>16-02-2013</code>, the output its throwing is : <code>1361079469</code> which is a junk it seems.</p>

<p>Can you let me know how to get the exact value which i put in input in the FORM to reflect the same in the output database?</p>
