<div>Even with this I get warning.</div>
<div>Say the code is</div>
<div> </div>
<div><strong><em>strtotime($form_state[&#39;values&#39;][&#39;birthdate&#39;])</em></strong></div>
<div> </div>
<div>But $form_state[&#39;values&#39;][&#39;birthdate&#39;]  is an array, but strtotime expects string.</div>
<div> </div>
<div>So I get warning &quot;warning: strtotime() expects parameter 1 to be string, array given in C:\MyWeb6.20\wamp\www\livejobs1\sites\default\modules\resume_submit\resume_submit.module on line 564.&quot;</div>
<div> </div>
<div>How do I overcome this issue....</div>
<div> </div>
<div>Thanks</div>
<div>Austin<br><br></div>
<div class="gmail_quote">On Mon, Mar 28, 2011 at 8:57 PM, Brett Evanson <span dir="ltr">&lt;<a href="mailto:brettev@gmail.com">brettev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">You might want to look at the strtotime function in php. I believe it<br>would take that date and turn it into a Unix epoch number (i think<br>
that&#39;s what you&#39;re looking for)<br><br>Brett Evanson<br>
<div>
<div></div>
<div class="h5"><br><br><br><br><br>On Mon, Mar 28, 2011 at 9:15 AM, Austin Einter &lt;<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>&gt; wrote:<br>&gt; Hi All<br>&gt; I have date field, I am storing it as &quot;int&quot; in table.<br>
&gt; When I checked the table in database, the value shows as 1.<br>&gt;<br>&gt; My code is as below.<br>&gt;<br>&gt; &#39;INSERT INTO {rs_table} ( uid, name, qualification, email, altemail, phone,<br>&gt; altphone, dob, yrsofexp, prefworkloc) &#39;<br>
&gt;       .&quot;VALUES (%d, &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;, &#39;%s&#39;, &#39;%d&#39;, &#39;%d&#39;, &#39;%s&#39;)&quot;,<br>&gt;      $user-&gt;uid,<br>&gt;      $form_state[&#39;values&#39;][&#39;persname&#39;],<br>
&gt;      $form_state[&#39;values&#39;][&#39;hqualif&#39;],<br>&gt;      $form_state[&#39;values&#39;][&#39;email&#39;],<br>&gt;      $form_state[&#39;values&#39;][&#39;altemail&#39;],<br>&gt;      $form_state[&#39;values&#39;][&#39;phone&#39;],<br>
&gt;      $form_state[&#39;values&#39;][&#39;altphone&#39;],<br>&gt;     $form_state[&#39;values&#39;][&#39;birthdate&#39;],<br>&gt;     $form_state[&#39;values&#39;][&#39;yearsexp&#39;],<br>&gt;     $form_state[&#39;values&#39;][&#39;prefloc&#39;]<br>
&gt;   );<br>&gt;<br>&gt; Whats the wrong here, is there any API I have to make use of to convert from<br>&gt; date to int value??<br>&gt;<br>&gt; Regards<br>&gt; Austin<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Mon, Mar 28, 2011 at 8:36 AM, Austin Einter &lt;<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>&gt;<br>
&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Hi All<br>&gt;&gt; I have a date field in my form.<br>&gt;&gt; How do I store/retreive the value into/from MySQL.<br>&gt;&gt;<br>&gt;&gt; On google search, I saw people are suggesting to use either &quot;int&quot; or<br>
&gt;&gt; &quot;datetime&quot; type.<br>&gt;&gt; Please suggest which one needs to be used.<br>&gt;&gt;<br>&gt;&gt; If I use int (I hope core uses int), while storing can I just<br>&gt;&gt; store &quot;form[&#39;values&#39;][&#39;date1&#39;]&quot; as %d and while retreivin, what are the<br>
&gt;&gt; related apis to convert back to date.<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt; Austin.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br></div></div>&gt; --<br>&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br></blockquote></div><br>