compare date in range php code example Example: php check if date between two dates Current date is between two dates