I want to setup date picker in frontend form,

and I did this currently, datepicker is shown in a frontend form

only one issue is that when I click on today in datepicker it take the wrong date

screenshot: -


<script type="text/javascript">
                              inputField: "RebillStartDate",
                              ifFormat: "%d/%m/%Y",
                              showsTime: true,
                              button: "rebillstartdate",
                              align: "Bl",
                              singleClick : true
  • you have set this way ..? $( ".selector" ).datepicker({ dateFormat: "dd.mm.yy" }); Default date format is mm/dd/yy Commented Mar 19, 2019 at 5:42
  • @RakeshDonga update my question with code Commented Mar 19, 2019 at 5:47
  • check this link mate : developersushant.blogspot.com/2015/01/… also change ifFormat: "%m/%e/%Y" Commented Mar 19, 2019 at 5:50
  • follow the same but not work when click on today Commented Mar 19, 2019 at 5:51
  • i think problem in your create input field try this also i have tried in past this link and working for me : justwebdevelopment.com/blog/… Commented Mar 19, 2019 at 5:52

1 Answer 1


try it like this i know its too late but still if someone faces this kind of similar issue then this would be helpful

<script type="text/javascript">
                                ], function($){
       prevText: '&#x3c;zurück', prevStatus: '',
        prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '',
        nextText: 'Vor&#x3e;', nextStatus: '',
        nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '',
        monthNames: ['Januar','Februar','März','April','Mai','Juni',
        monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
        dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
        dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
        dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
      showMonthAfterYear: false,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.