<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged datepicker</title>
<link>https://overflow.efficy.io/?qa=tag/datepicker</link>
<description>Powered by Question2Answer</description>
<item>
<title>Only select year and month in date picker</title>
<link>https://overflow.efficy.io/?qa=6957/only-select-year-and-month-in-date-picker</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Is there a way to only select the year and month in the date picker? The day is not relevant for my case. In the database, it can still have the full date, as I can just extract the year and month. However, the date picker itself should not show the day.&lt;br&gt;
I see that it is possible in the newest version of the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/Eonasdan/bootstrap-datetimepicker&quot;&gt;library&lt;/a&gt; that you adapted, but I don't see how it's possible with your implementation.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;
</description>
<category>IT</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6957/only-select-year-and-month-in-date-picker</guid>
<pubDate>Wed, 30 Aug 2023 08:16:13 +0000</pubDate>
</item>
<item>
<title>How to add a &quot;datePicker&quot;  edit field in a DataGrid ?</title>
<link>https://overflow.efficy.io/?qa=2068/how-to-add-a-datepicker-edit-field-in-a-datagrid</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to set an edit field as a datePicker in a DataGrid. This post was first a question, but, finally, I give the solution i found...&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=647493181767215123&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;I use a macro in the GridColumnsCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.F_MYDATE {[
  &amp;lt;td width=&quot;150px&quot;&amp;gt;
    &amp;lt;input type=&quot;text&quot; class=&quot;pickDateEditor&quot;   id=&quot;F_MYDATE_&amp;lt;#F=$KEY$&amp;gt;&quot; title=&quot;&quot; value=&quot;&amp;lt;#F=$FIELD$;nospace=true&amp;gt;&quot;  data-msg=&quot;pickDate;$this;$event&quot;  placeholder=&quot;&amp;lt;%GetLocaleSetting('ShortDateFormat', moment=T)%&amp;gt;&quot; autocomplete=&quot;off&quot; &amp;gt;
  &amp;lt;/td&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I also add this JS inside MacroConsultCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ConsultScriptsCustom.Comp {[

 &amp;lt;script&amp;gt;
// pour gérer les datetimepicker dans les listes
requirejs(['jquery', 'datetimepicker' ], function($, Datetimepicker) {

    $('.pickDateEditor').each(function( i ) {
        $(this).datetimepicker({
            format:   &quot;&amp;lt;%GetLocaleSetting('ShortDateFormat', moment=T)%&amp;gt;&quot;,
            language: &quot;&amp;lt;%GetLanguage(lowercase=T)%&amp;gt;&quot;
        });
    });

}); //  End of requirejs
  &amp;lt;/script&amp;gt;

 ...
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The resultat is below :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=2093120410724087210&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;The next step is, for me now, to save the changed values by an Ajax call...&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2068/how-to-add-a-datepicker-edit-field-in-a-datagrid</guid>
<pubDate>Fri, 02 Dec 2016 17:54:50 +0000</pubDate>
</item>
</channel>
</rss>