I am a logics problem in my application. Galera is the following, in the project module of my system there is a deadline for project delivery. I need to know the following.
If today is 1 week (7 Days) before the deadline, send the yellow to the status column (These colors I've already implemented is missing the rsrsr logic)
If today is 2 Weeks (14 Days) before the deadline, please check Green for status column.
If red command burst
So far I've only checked whether or not it crashed with a basic logic
variable $recebeData
= End Date of the project
variable $ diaTime - '
<?php
$recebeData = date_converter($date);
$diaHoje = date('Y-m-d');
if(strtotime($recebeData) >= strtotime($diaHoje)){
}
jogo verde no status
else {
jogo vermelho no status
}
?>
Help me make yellow play if it's missing 7 days before deadline and green if it's missing 14 days before!