1

This is my setup for the calendar:

Calendar.setup({
  inputField : 'scheduled_ajax_update',
  ifFormat : '%Y-%m-%d',
  button : 'scheduled_ajax_update_trig',
  align : 'Bl',
  singleClick : true
});

Its working fine except that I got a future date. See img attached:enter image description here

Any idea why I got this ?

Thx :)

  • the problem is current date is not showing in calendar. am i right? – Rama Chandran M Jun 29 '17 at 9:08
  • @RamaChandran , yes, that's the problem :) or to get the value from the input(which has this format: 14-06-2017 ) as default date – Attila Naghi Jun 29 '17 at 9:15
  • I think it is take from local or server date. can you please check. – Rama Chandran M Jun 29 '17 at 9:17
  • not sure about this, but I think you can pass a dateText param to the setup. dateText: 'your date' – Rama Chandran M Jun 29 '17 at 9:22
  • getting this: TypeError: this.getDateText is not a function – Attila Naghi Jun 29 '17 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.