• Resolved itamayo

    (@itamayo)


    Hi,

    I just bought the datepicker addon but it is not working propperly, it saves a value like ‘6 \06\e diciembre \06\e 2023’. Also I will be using it to enter birthdates, so I would like to have the option to define the year without having to click month to month until the desired date.

    Is there any chance to fix these issues?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rolandbarker

    (@rolandbarker)

    When you use the datepicker, you are clicking on a date in a graphic calendar, which automatically saves the date in a common format. Your question implies that you’re typing in the date, which you can do, but you’re not using the datepicker when you do that.

    If you type in a date string, php will attempt to interpret the date input as best it can, and it will attempt to do this using localized patterns. This requires that the localization setting for the site match the language you are using for your date input. Make sure you have the “intl” module installed in your php (this is usually installed, but if it is not make sure it is). Nevertheless, some date strings can’t be interpreted by php because they are either ambiguous or non-standard. I don’t know what the standards are for the language you’re using so I can’t comment specifically on your example.

    It is possible to configure the datepicker to allow the user to select the year, this is explained here: Can I make it easier to select a date that is many years ago?

    If you have further questions on this use of this plugin, we have a support forum for the Datepicker plugin at: https://xnau.com/product_support/datepicker/

    Thread Starter itamayo

    (@itamayo)

    Thanks so much for your response.
    Surely the issue was caused by the date format defined in my site ‘j \d\e F \d\e Y’, so I changed to ‘d/m/Y’ in the Datepicker configuration and now it is working fine.

    Thanks again!

    • This reply was modified 1 year ago by itamayo.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Datepicker addon not working’ is closed to new replies.