• Resolved Michael Rieder

    (@teamtacho)


    Hi Team

    is it possible to limit the dates in the datepicker to the dates less or equal than today?

    Best Regards Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milos Jovanovic

    (@milosjovanovicwpdt)

    Hey Michael,

    Sorry to disappoint you, but limiting the dates available in the Datepicker to dates less than or equal to today is not possible with the current built-in options.

    The Datepicker is based on a third-party library, and we don’t currently have an option in wpDataTables to configure this restriction.

    However, this could be an interesting feature suggestion for the future. You can check our feature requests here:

    https://features.wpdatatables.com/

    Please search first to see if someone has already submitted a similar request. If not, you can add it as a new suggestion.

    You can also follow our changelog and newsletter to stay up to date with new features and changes:

    https://wpdatatables.com/help/whats-new-changelog

    https://wpdatatables.com/newsletter/

    As a separate possibility, if your goal is to only display rows containing dates up to today, rather than restrict the dates selectable in the Datepicker itself, there are ways to achieve this with a SQL-based table using a WHERE condition. This functionality is available in the Premium version.

    Since this is a WordPress.org forum and we can only provide support here for the Lite version, if you’d like to explore that option, please contact us through our main support channel

    https://help.wpdatatables.com/en/articles/39-how-to-contact-support

    Kind regards,
    Milos

    Thread Starter Michael Rieder

    (@teamtacho)

    Hi Milos

    thank you very much for your quick and detaild response.

    I made it with SQL

    Plugin Support Milos Jovanovic

    (@milosjovanovicwpdt)

    Hey Michael,

    You’re very welcome! I’m glad you were able to achieve what you needed with the SQL approach.

    Thanks for letting us know, and best of luck with your project!

    Kind regards,
    Milos

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.