• Hi:

    Is there a way to validate dates? Specifically, I would like to only allow today’s date and future dates.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, you could use a regular expression to control the date accepted.

    Thread Starter Julian

    (@jm300)

    Thank you for your reply! I am pretty sure I’d need a conditional statement since Regex most likely can’t determine today’s date.

    Is there a hook I can use with that particular field? I just need to grab the input in the field and check to see whether it is greater than or equal to today’s date. If it is, all is good. If not, the form should not be submitted and an error message should be displayed. This should be quite easy with PHP but I am having a difficult time getting the input by the user.

    Thanks again! Any assistance would be greatly appreciated.

    • This reply was modified 7 years, 5 months ago by Julian.

    Hi, the plugin developer will investigate further your issue/request.

    Thank you

    Thread Starter Julian

    (@jm300)

    Thank you! I appreciate it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validation for Dates’ is closed to new replies.