C
C
chelkaz2016-03-14 00:47:22
PHP
chelkaz, 2016-03-14 00:47:22

Regular expression Date not less than today?

The date format is like this after entering 03/12/2016
How can I check it that it would correspond to this format and the selected number was at least today's?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2016-03-14
@dimonchik2013

write what happens
and check "at least" only with a regexp or just a function?

D
Daniil Igorevich, 2016-03-14
@Petr_Anisimov

The replace method takes a function as its second argument, so you can try to cheat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question