I'm trying to filter dates, the issue is like this:
By method POST
I get a date with the format "yyy-mm-dd"
plus the time with format "HH:MM:SS"
, the date and time are separate variables of type string.
$fecha = "2016-08-29";
$hora = "13:00:00";
With this date and time I want to make a filtering that fits the following requirement:
"Show a form only on days Monday to Friday from 07:00 a.m. to 10:00 p.m. and Saturdays from 10:00 a.m. to 2:00 p.m.".
For example: The variable $fecha
and $hora
conform to the requirement, so it should show some information, a form.
I am dealing with some methods of PHP
as date()
, time()
, however I can not solve the problem.
If you had any idea or recommendation, I would appreciate it very much.