This hint is captured in Step 3 of vtlib documentation.<br><br><div class="gmail_quote">On Mon, Aug 23, 2010 at 7:48 PM, Darjan Prtic <span dir="ltr">&lt;<a href="mailto:dprtic@gmail.com">dprtic@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Prasad!<div><br></div><div>It would be nice if you put it in next vtlib documentation release.</div>
<div><br></div><div><br clear="all">Darjan Prtic<br>
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Aug 23, 2010 at 04:53, Prasad <span dir="ltr">&lt;<a href="mailto:prasad@vtiger.com" target="_blank">prasad@vtiger.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">

You need to explicitly set the columntype to avoid the default datatype.<br>$field5-&gt;columntype = &#39;DATE&#39;;<br><br>NOTE: If the column already exists in the table, the datatype will not be altered.<br><br>Regards,<br>



Prasad<br><br><div class="gmail_quote"><div><div></div><div>On Mon, Aug 23, 2010 at 12:46 AM, Darjan Prtic <span dir="ltr">&lt;<a href="mailto:dprtic@gmail.com" target="_blank">dprtic@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
<div>Hello all!</div><div><br></div><div>I have created date field for my custom module like this</div><div>=====</div><div>$field5 = new Vtiger_Field();</div><div>$field5-&gt;name = &#39;startdate&#39;;</div><div>$field5-&gt;label = &#39;Start Date&#39;;</div>





<div>$field5-&gt;uitype = 5;</div><div>$field5-&gt;typeofdata = &#39;D~O&#39;;</div><div>$field5-&gt;displaytype = 1;</div><div>$block2-&gt;addField($field5);</div><div>=====</div><div>why is this field in vtiger_my_custom_module not created as date column but as Varchar? Am i doing something wrong or it is a bug in vtlib?</div>





<div><br></div><div>Thanks for your replies!</div>Darjan Prtic<font color="#888888"><br>
</font><br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>